bug-groff
[Top][All Lists]
Advanced

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

Re: Extra line injected in output


From: Werner LEMBERG
Subject: Re: Extra line injected in output
Date: Sun, 02 Mar 2008 22:29:23 +0100 (CET)

>   See the AUTHORS section at the end of the attached apt-get.8 man
>   file. If you view that file with "groff -Tascii -man" or with the
>   man(1) command with MANWIDTH=80 or MANWIDTH=81, an extra and
>   undesirable blank line is injected after the "APT team" line and
>   the "Author." line that follows it; like this:
> 
>   AUTHORS
>          Jason Gunthorpe
>              Author.
> 
>          APT team
> 
>              Author.

The man page uses

  .sp -1n

a command which shouldn't be used in a man page (and which is
incorrect anyway since it should be `.sp -1').  Additionally, it
abuses the `.IP' macro for that purpose.

BTW, the reason for the additional blank line is that exactly at that
place a page transition has happened, and `.sp -1' can't move up to
the previous page and is ignored consequently.

Try the following below to fix it.


     Werner


======================================================================


--- apt-get.8.old       2008-03-02 22:16:30.000000000 +0100
+++ apt-get.8   2008-03-02 22:22:27.000000000 +0100
@@ -486,14 +486,13 @@
 command\.
 .SH "AUTHORS"
 .PP
+.HP 4
 \fBJason Gunthorpe\fR
-.sp -1n
-.IP "" 4
+.br
 Author.
-.PP
+.HP 4
 \fBAPT team\fR
-.sp -1n
-.IP "" 4
+.br
 Author.
 .SH "NOTES"
 .IP " 1." 4




reply via email to

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