Change string nesting format
Adrian L Lange [08-19-14 - 16:33]
Change string nesting format
diff --git a/elements/tags.lua b/elements/tags.lua
index 42ea6db..ba4ffe4 100644
--- a/elements/tags.lua
+++ b/elements/tags.lua
@@ -144,6 +144,6 @@ tags.Methods['p3lim:pet'] = function()
local max = UnitHealthMax('pet')
return ('%s%d%%|r'):format(Hex(ColorGradient(cur, max, 1, 0, 0, 1, 1, 0, 1, 1, 1)), cur / max * 100)
elseif(UnitIsDead('pet')) then
- return '|TInterface\\RaidFrame\\Raid-Icon-DebuffDisease:26|t'
+ return [[|TInterface\RaidFrame\Raid-Icon-DebuffDisease:26|t]]
end
end
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index e2a610c..12fc05b 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -8,10 +8,11 @@
local _, ns = ...
local oUF = ns.oUF
-local FONT = [=[Interface\AddOns\oUF_P3lim\semplice.ttf]=]
-local TEXTURE = [=[Interface\ChatFrame\ChatFrameBackground]=]
+local FONT = [[Interface\AddOns\oUF_P3lim\semplice.ttf]]
+local TEXTURE = [[Interface\ChatFrame\ChatFrameBackground]]
local BACKDROP = {
- bgFile = TEXTURE, insets = {top = -1, bottom = -1, left = -1, right = -1}
+ bgFile = TEXTURE,
+ insets = {top = -1, bottom = -1, left = -1, right = -1}
}
local function PostUpdatePower(element, unit, min, max)