Bug in troff?

thomas at utah-gr.UUCP thomas at utah-gr.UUCP
Sat May 28 01:55:15 AEST 1983


Relay-Version:version B 2.10 5/3/83; site harpo.UUCP
Message-ID:<792 at utah-gr.UUCP>
Date:Fri, 27-May-83 11:55:15 EDT

[We are running 4.1aBSD.]

I have run into what appears to be a bug in both troff and nroff.  Try
the following input lines:

.nf
\h'|8n'x\h'|9n'x

\h'|8n'x\c
\h'|9n'x

and notice the difference between them.  Apparently n/troff is
resetting its horizontal position counter when it hits the newline,
even though the \c prevents the input newline from causing a newline in
the output.  This is very annoying, especially as this case is
generated a lot by vgrind.  Has anybody got a fix for this?

Thanks.
=Spencer



More information about the Comp.unix.wizards mailing list