Percentage rule: line break only for long text
Break only when it gets too long
Short entries stay on one line, long ones break cleanly.
What it's about
- The same percentage rule as for long names: [#:85:<LF>:Street:City] sits right after the comma.
- If Street and City fill more than 85 % of the line, the rule inserts a line break there.
- Without the rule the line breaks where the space ends – the ZIP code ends up alone.
- Plan the box with one line to spare.
Transcript
Click a timestamp to jump to that point in the video.
- A short address stays on one line. When it gets long, it breaks cleanly – right after the comma, so the city stays together.
- Behind this is the same percentage rule as for the long name. In square brackets: the hash sign and the threshold, eighty-five percent. Then what should happen: L F, a line break. And last, the fields that are measured: Street and City.
- If Street and City together fill more than eighty-five percent of the line, the rule puts a line break in its place. Otherwise everything stays on one line.
- In the back end, you open the print template in the layouter, select the box Contact and click Inhalt bearbeiten – this button is still in German. The rule sits exactly where the break should go: after the comma, before the city.
- Without the rule, the line breaks wherever the space runs out. Then the ZIP code ends up alone on the next line. And: the rule breaks a little before the edge. So plan the box with one line to spare.
- Here's how it looks live.
- Short addresses stay on one line, long ones break cleanly.