From 9ce5845e9935f8ff2a9edac56304a763c5778d18 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Wed, 26 Sep 2012 19:34:27 -0500 Subject: [PATCH] Fixed some patterns in the tooltip markup code --- WeightsWatcher.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index de9d662..e7d8e38 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -708,21 +708,21 @@ local function markTooltipLines(tooltip, ttname, showDebugInfo) textL = WeightsWatcher.preprocess(origTextL:lower()) if rawget(ww_unparsed_lines, textL) then if showDebugInfo then - ttleft:SetText(string.format("%s |cffff00ff(U)|r", string.gsub(origTextL, "(.)([\r\n]\+)", "%1 |cffff00ff(U)|r%2"))) + ttleft:SetText(string.format("%s |cffff00ff(U)|r", string.gsub(origTextL, "(.)([\r\n]+)", "%1 |cffff00ff(U)|r%2"))) else - ttleft:SetText(string.format("%s |cffff0000*|r", string.gsub(origTextL, "(.)([\r\n]\+)", "%1 |cffff0000*|r%2"))) + ttleft:SetText(string.format("%s |cffff0000*|r", string.gsub(origTextL, "(.)([\r\n]+)", "%1 |cffff0000*|r%2"))) end numUnweightedEffects = numUnweightedEffects + 1 elseif rawget(ww_ignored_lines, textL) then if showDebugInfo then - ttleft:SetText(string.format("%s |cffffff00(I)|r", string.gsub(origTextL, "(.)([\r\n]\+)", "%1 |cffffff00(I)|r%2"))) + ttleft:SetText(string.format("%s |cffffff00(I)|r", string.gsub(origTextL, "(.)([\r\n]+)", "%1 |cffffff00(I)|r%2"))) end elseif rawget(ww_temp_ignored_lines, textL) then if showDebugInfo then - ttleft:SetText(string.format("%s |cffffff00(TI)|r", string.gsub(origTextL, "(.)([\r\n]\+)", "%1 |cffffff00(TI)|r%2"))) + ttleft:SetText(string.format("%s |cffffff00(TI)|r", string.gsub(origTextL, "(.)([\r\n]+)", "%1 |cffffff00(TI)|r%2"))) end elseif rawget(ww_unweighted_lines, textL) then - ttleft:SetText(string.format("%s |cffff0000*|r", string.gsub(origTextL, "(.)([\r\n]\+)", "%1 |cffff0000*|r%2"))) + ttleft:SetText(string.format("%s |cffff0000*|r", string.gsub(origTextL, "(.)([\r\n]+)", "%1 |cffff0000*|r%2"))) numUnweightedEffects = numUnweightedEffects + 1 end end -- 1.7.9.5