# HG changeset patch # User contrebasse # Date 1376256251 -7200 # Node ID f17fc88e971e1cee91787e5fbf198d53012495a3 # Parent f7c7a1a9cac9854d1a6c331552535f7fe190c297 Remove trailing spaces diff -r f7c7a1a9cac9 -r f17fc88e971e EnchantOnScroll.lua --- a/EnchantOnScroll.lua Sun Aug 11 23:18:02 2013 +0200 +++ b/EnchantOnScroll.lua Sun Aug 11 23:24:11 2013 +0200 @@ -29,7 +29,7 @@ btn:Hide() return end - + -- Check that there's scrolls in the bags local itemCount = GetItemCount(SCROLL_ID) if not itemCount or itemCount==0 then @@ -39,7 +39,7 @@ return end btn:SetText(A.L["Enchant a scroll (%d)"]:format(itemCount)) - + if numAvailable==0 then btn:Disable() btn:Show() @@ -60,11 +60,11 @@ btn:SetPoint("TOPRIGHT",TradeSkillCreateButton,"TOPLEFT",0,0) btn:SetText(A.L["Enchant on a scroll"]) btn:Show() - + btn:SetScript("OnClick",function() -- from http://wowprogramming.com/utils/xmlbrowser/live/AddOns/Blizzard_TradeSkillUI/Blizzard_TradeSkillUI.xml DoTradeSkill(TradeSkillFrame.selectedSkill,1) - + -- From GnomeWorks/ScrollMaking.lua UseItemByName(SCROLL_ID) end)