Mercurial > wow > wowdb-profiler
comparison Main.lua @ 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 |
comparison
equal
deleted
inserted
replaced
| 63:d98daa5373aa | 64:2421a4d39909 |
|---|---|
| 351 UpdateFactionData() | 351 UpdateFactionData() |
| 352 DatamineTT:ClearLines() | 352 DatamineTT:ClearLines() |
| 353 DatamineTT:SetUnit(unit) | 353 DatamineTT:SetUnit(unit) |
| 354 | 354 |
| 355 for line_index = 1, DatamineTT:NumLines() do | 355 for line_index = 1, DatamineTT:NumLines() do |
| 356 local faction_name = _G["WDPDatamineTTTextLeft" .. line_index]:GetText() | 356 local faction_name = _G["WDPDatamineTTTextLeft" .. line_index]:GetText():trim() |
| 357 | 357 |
| 358 if faction_name and faction_standings[faction_name] then | 358 if faction_name and faction_standings[faction_name] then |
| 359 return faction_name, faction_standings[faction_name] | 359 return faction_name, faction_standings[faction_name] |
| 360 end | 360 end |
| 361 end | 361 end |
