> groff -Tascii <<'EOF'
> .nf
^^^
This instruction causes the empty line. Just try to insert three
`.br' lines to get three line breaks.
> Before the box.
> .box xxx
> .br
> .box
> .xxx
> After the box.
> EOF
> exit 0
>
> =>
> Before the box.
>
> After the box.
>
> I'm struggling to use .box and _always_ get a line of text in the
> diversion if it contains something which causes a break, even if
> there is no actual text in the diversion.
`.nf' means `no formatting', explicitly insert line breaks.
> What I would like to do is use .box to divert arbitrary stuff which
> may cause breaks, but not generate any output unless the diversion
> actually contains text.
Only use .nf while replaying a diversion (to avoid reformatting), not
while defining it.
Werner