Quantcast

In addon:ScanVendor(): Check to see if ttscantext is "" - if so, don't add it to output. Fixes extraneous newlines in vendor scans.

James D. Callahan III [03-20-10 - 08:40]
In addon:ScanVendor(): Check to see if ttscantext is "" - if so, don't add it to output. Fixes extraneous newlines in vendor scans.
Filename
Datamine.lua
diff --git a/Datamine.lua b/Datamine.lua
index db7e0cc..e5dbf2a 100644
--- a/Datamine.lua
+++ b/Datamine.lua
@@ -1680,12 +1680,13 @@ do
 					local item_link = GetMerchantItemLink(i)
 					local item_id = ItemLinkToID(item_link)
 					local spell_id = RECIPE_TO_SPELL_MAP[item_id]
+
 					if spell_id then
 						local ttscantext = addon:TooltipScanRecipe(spell_id, true, true)

 						added = true

-						if ttscantext then
+						if ttscantext and ttscantext ~= "" then
 							tinsert(output, ttscantext)
 						end