WeakAuras

WeakAuras

206M Downloads

Line break is not working in Icon Weak Auras anymore

FunkySayu opened this issue ยท 1 comments

commented

Describe the bug
I want to break line in my Weak Aura icon description.

Do you have an error log of what happened?
Nope.

To Reproduce

  • Create an Icon weak aura
  • Input the text %p\nworld: the text correctly support the line return (good)
  • Input the text hello\nworld: the text does not support the line return (bad)

Screenshots
Bad: https://puu.sh/Ek1V4/f966274685.png (string was: 40% Haste\nRaid-wide)
Good: https://puu.sh/Ek1VF/68515a948a.png (string was: 40% Haste for %p\nRaid-wide)

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
Irrelevant. This is likely due to the behavior of string substitution changing in the Weak Aura lib.

Which version of WeakAuras are you using?
2.14.6

Was it working in a previous version? If yes, which was the last good one?
Yes, before the release of group icons.

Additional context

Good: https://pastebin.com/WYqixBWY
Bad: https://pastebin.com/st4Wzrpa

commented

Interestingly, there's a quick mitigation if I input the following string: 40%% Haste%{}\nRaid-wide. Here, %{} triggers the switch from "normal string" to "string with placeholders" somehow, making it work.

My guess is that it has something to do with this function:

local function ContainsPlaceHolders(textStr, symbolFunc)