From d9e7679840c7f63094fca4e570bc121dfd1170f8 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 20 Mar 2010 04:40:48 -0400 Subject: [PATCH] In addon:ScanVendor(): Check to see if ttscantext is "" - if so, don't add it to output. Fixes extraneous newlines in vendor scans. --- Datamine.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.7.9.5