changeset 64:2421a4d39909

Trim whitespace from faction names gleaned from tooltips so the rar occasion where this happens doesn't make the faction name not record.
author James D. Callahan III <jcallahan@curse.com>
date Thu, 26 Jul 2012 13:13:08 -0500
parents d98daa5373aa
children 3f7a12a9163c
files Main.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Main.lua	Mon Jul 23 09:25:56 2012 -0500
+++ b/Main.lua	Thu Jul 26 13:13:08 2012 -0500
@@ -353,7 +353,7 @@
         DatamineTT:SetUnit(unit)
 
         for line_index = 1, DatamineTT:NumLines() do
-            local faction_name = _G["WDPDatamineTTTextLeft" .. line_index]:GetText()
+            local faction_name = _G["WDPDatamineTTTextLeft" .. line_index]:GetText():trim()
 
             if faction_name and faction_standings[faction_name] then
                 return faction_name, faction_standings[faction_name]