comparison text_tabs.lua @ 60:45d2b153c2df

Wowstead forums cannot handle [text in square brackets] if it isn't a markup tag, even when in plaintext mode.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Tue, 17 Apr 2012 20:51:36 +0000
parents fcc0d0ff5832
children 99ab21f0755f
comparison
equal deleted inserted replaced
59:1cbaa1ce8253 60:45d2b153c2df
177 if e.kind == 'boss' and e.reason == 'kill' then 177 if e.kind == 'boss' and e.reason == 'kill' then
178 -- This could, concievably, be different on a per-boss basis 178 -- This could, concievably, be different on a per-boss basis
179 -- (e.g., "we're dropping to 10-man for the PvP boss") 179 -- (e.g., "we're dropping to 10-man for the PvP boss")
180 local i,o = do_attendance (e.raidersnap, e.maxsize / MEMBERS_PER_RAID_GROUP) 180 local i,o = do_attendance (e.raidersnap, e.maxsize / MEMBERS_PER_RAID_GROUP)
181 181
182 cache[#cache+1] = ("\n%s -- %s\n[+] %s\n[-] %s\n"):format(e.instance, 182 cache[#cache+1] = ("\n%s -- %s\n{+} %s\n{-} %s\n"):format(e.instance,
183 e.bossname, i, o) 183 e.bossname, i, o)
184 184
185 elseif e.kind == 'time' then 185 elseif e.kind == 'time' then
186 cache[#cache+1] = e.startday.text 186 cache[#cache+1] = e.startday.text
187 187
197 w:SetCallback("OnClick", function(_w) 197 w:SetCallback("OnClick", function(_w)
198 local instance, maxsize = addon.instance_tag() 198 local instance, maxsize = addon.instance_tag()
199 local i,o = do_attendance (saved_g_loot_pointer.raiders, maxsize / MEMBERS_PER_RAID_GROUP) 199 local i,o = do_attendance (saved_g_loot_pointer.raiders, maxsize / MEMBERS_PER_RAID_GROUP)
200 local h, m = GetGameTime() 200 local h, m = GetGameTime()
201 201
202 local additional = ("Attendance for %s at %.2d:%.2d:\n[+] %s\n[-] %s"):format(instance, h, m, i, o) 202 local additional = ("Attendance for %s at %.2d:%.2d:\n{+} %s\n{-} %s"):format(instance, h, m, i, o)
203 editbox:SetText(editbox:GetText() .. '\n' .. additional) 203 editbox:SetText(editbox:GetText() .. '\n' .. additional)
204 end) 204 end)
205 container:AddChild(w) 205 container:AddChild(w)
206 end 206 end
207 207