14.0.0B1 - Text Formatting sometimes prevents String collapse

Issue description:

For strings which only output if value is present, e.g.:
{%fieldname%}
Set to variable line height…

Text formatting *inside* the brackets functions correctly. Text formatting *outside* the brackets prevents the string from hiding when no content is present.

Logs:

Upload description: Celorien_Formatting_Pos

Additional information:

Unsure if bug or feature, but I like it! Lol I hope you don’t change it, but I wanted to document the behavior, just in case.

Apparently I used it “the wrong way.” Fortunately, it’s a quick fix at the user’s end.

If kept, can be used to dynamically collapse to zero lines in some cases while leaving one line in others.

Must be set on a per String basis, not per case.

Reproduction steps:

May have auto-formatting errors!
See Screenshots section for demo

String 1: {__inside case__%|bool1==“false”%}
String 2 - toggle bool1

String 3: __{outside case%|bool3==“false”%}__
String 4 - toggle bool3

Overlays enabled for 1 & 3, both set to “At most 1 line”

Both 1 & 3 will display underlined. Tapping 2 will hide 1 completely. Tapping 4 will hide the content of 3, but the empty overlay remains and the layout does not shift.

Media provider:

Local device

Screenshots:

nps-text formatting test-20260212_180858-symfonium.json (32.2 KB)

First pic: default, Second pic: after toggling both

This is normal the string is not actually empty as it have the formatting data.

1 Like