groff
[Top][All Lists]
Advanced

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

Re: [Groff] Re: begin page blues


From: Werner LEMBERG
Subject: Re: [Groff] Re: begin page blues
Date: Sat, 18 Feb 2006 23:13:33 +0100 (CET)

> Here's an artificial example just to see the extra space at work:
> 
> .vs  0.85c
> .ps 20
> .ft CR
> .sp 10
> Hello1
> \X'ps: exec 1 0 0 setrgbcolor'
> Hello2
> Hello3
> \X'ps: exec 0 0 0 setrgbcolor'
> .br
> Hello1 Hello2 Hello3
> .\"
> .ex
> 
> Here the red Hello2 Hello3 are one space to the right of the black
> ones.  Does anyone know the how and why of this space?

GNU troff never merges spaces.  The line break after `Hello1' creates
a space, and the line break after the first `\X' creates a space too.
This is exactly what you see in the output.

Just say

  \X'...'\c

to avoid this effect.


    Werner




reply via email to

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