Removing empty lines automatically
An empty line disappears
If a field stays empty, there's no gap on the card: a rule after the field deletes the whole line.
What it's about
- The rule sits in square brackets right after the field: field name, colon, $LF.
- In the layouter: Selection, the box, then Inhalt bearbeiten (still German).
- Trap: only a real line break separates lines; with <LF> in between, the rule deletes too much.
- Check every template once with empty fields.
Transcript
Click a timestamp to jump to that point in the video.
- When a field stays empty, there shouldn't be a gap on the card. Here the buyer picks “no title” – the line disappears, and the department moves up.
- A rule right after the field takes care of that. In square brackets: the field name, a colon, and then dollar L F. If the field is empty, the rule deletes the whole line.
- In the back end, open the print template in the layouter and pick the box under Selection. Here it's the box Role.
- Click Inhalt bearbeiten to see its text. Each line has its field, and right after it, its rule.
- There's one trap. Only a real line break counts as a new line. If the command L F in angle brackets sits in between instead, both entries count as one line – and the rule deletes the name along with it.
- With complete data, you'd never notice. That's why you check every template once with empty fields.
- Here's how it looks live.
- One rule per line – and no more gaps on the card.
Also in: Rules & automationTesting & troubleshootingOnboarding course