Quote from starlonI'm not sure why this happens, but every so often you have to add some whitespace to the text and it'll fix some problems. I'm not sure exactly where you're having a problem, though, so if you clarify a bit more, maybe I can better help you.
I think tooltip:AddLine has an option to wrap the text, but other than that I'm not sure I know a way to do what you want. Maybe I should look into a way of providing options so users can specify line wrapping?
I know this is rather old but it's a limit of the Colorize function:
LibScriptablePluginColor-1.0.lua - line 206
local function Colorize(str, r, g, b) if type(str) ~= "string" then return "" end if type(r) ~= "number" then r = 1 end if type(g) ~= "number" then g = 1 end if type(b) ~= "number" then b = 1 end -- V space here should be removed return ("|cff%02x%02x%02x%s |r"):format(r * 255, g * 255, b * 255, str) end
result is |cffrrggbbTEXT |r
Result of Colorize("MyText", 1,0,0) .. "is here";
Would be MyText is here