From b403bafc806e48d2063fde6245eeb25927755173 Mon Sep 17 00:00:00 2001 From: Areko Date: Fri, 12 Dec 2014 15:11:58 +0100 Subject: [PATCH] Remove line-breaks out of the RAID_BUFF_# values when displaying This is a problem at least in the germane client. --- Broker_ConsolidatedBuffs.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Broker_ConsolidatedBuffs.lua b/Broker_ConsolidatedBuffs.lua index ac008e7..f9610db 100644 --- a/Broker_ConsolidatedBuffs.lua +++ b/Broker_ConsolidatedBuffs.lua @@ -149,13 +149,13 @@ local BrokerConsolidatedBuffs = LDB:NewDataObject("Broker_ConsolidatedBuffs", { pets = pets ..", ".. defaults[i][3][ii] end tooltip:AddLine( - "\124T"..defaults[i][1]..":0\124t \124c"..c.._G["RAID_BUFF_"..i].."\124r", + "\124T"..defaults[i][1]..":0\124t \124c"..c.._G["RAID_BUFF_"..i]:gsub("-\n", "").."\124r", strsub(classes, 2), strsub(pets, 2) ) --tooltip:AddLine(" ") - --tooltip:AddLine("\124T"..defaults[i][1]..":0\124t \124c"..c.._G["RAID_BUFF_"..i].."\124r "..list) + --tooltip:AddLine("\124T"..defaults[i][1]..":0\124t \124c"..c.._G["RAID_BUFF_"..i]:gsub("-\n", "").."\124r "..list) --tooltip:AddLine(" "..list) mask = bit.lshift(mask, 1) @@ -177,7 +177,7 @@ local BrokerConsolidatedBuffs = LDB:NewDataObject("Broker_ConsolidatedBuffs", { for i = 1, NUM_LE_RAID_BUFF_TYPES do if not GetRaidBuffTrayAuraInfo(i) and bit.band(buffmask, mask) > 0 then - missing = missing .. _G["RAID_BUFF_"..i] ..", " + missing = missing .. _G["RAID_BUFF_"..i]:gsub("-\n", "") ..", " end mask = bit.lshift(mask, 1) end