WeakAuras

WeakAuras

206M Downloads

%n not formatting.

nullKomplex opened this issue ยท 3 comments

commented

Describe the bug

Reported by a user in discord. Example case was a progress bar using %n, but I didn't test all formatted text replacements to see any other changes.

Previously if the text supplied via %n was "too long" it was truncated and ... was appended. This is no longer the case.

Do you have an error log of what happened?

No errors.

To Reproduce

  1. Create progress bar aura.
  2. Set trigger to Status - Health - Target
  3. Click on a training dummy. Alternatively you can try other mobs with long names, other triggers, or resize the bar shorter.
  4. Observe as name extends into other text, icon, and potentially off the aura altogether.

Screenshots

Old:
image

New:
image

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?

Tested with only the 5 official WA addons enabled and a fresh SV.

Which version of WeakAuras are you using?

2.14.4

Was it working in a previous version? If yes, which was the last good one?

Yes, 2.13.4

Additional context

I will be submitting a Feature Request that will address formatting very soon.

commented

So I think this hasn't been a big problem. That is I haven't seen that many complaints and thus it can wait for the more serious rework that is #1618

commented

It's likely this is by design, as a result of the text rework. Since text's positions are now movable it's likely difficult to determine where the text should be cut-off now.

commented

That truncating was a special feature of the progress bar, that didn't survive the porting. I planned to add a max width setting to texts, but forgot to do that.