groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] .br after .box *invariably* generates an output line?


From: Werner LEMBERG
Subject: Re: [Groff] .br after .box *invariably* generates an output line?
Date: Sat, 16 Feb 2013 09:17:57 +0100 (CET)


> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]