groff
[Top][All Lists]
Advanced

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

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


From: Jim Avera
Subject: [Groff] .br after .box *invariably* generates an output line?
Date: Fri, 15 Feb 2013 11:28:23 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

#!/bin/sh

# Question: Why is there a blank line in the output from the following?

groff -Tascii <<'EOF'
.nf
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.

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.

Thanks in advance for any help...

-Jim




reply via email to

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