Source-Changes-HG archive

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

[src/trunk]: src/share/tmac Fix the `mysterious blank lines' problem (in 98% ...



details:   https://anonhg.NetBSD.org/src/rev/c99a13eaef4b
branches:  trunk
changeset: 467331:c99a13eaef4b
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Mar 23 06:44:38 1999 +0000

description:
Fix the `mysterious blank lines' problem (in 98% of cases, anyway).  This was
due to unconditional use of .ne.  groff apparently inserts some virtual trap
at the end of each page, and this was causing the .ne commands to output extra
lines.  Solution is to only use them in troff.

Also fix a related bug in .It, where it would insert a page break in the middle
of a sentence.

Remove the end of page trap in nroff mode, as this causes .sp to sometimes eat
the space due to the nearby trap.

Lastly, undue a previous change that broke the formatting of the SYNOPSIS
section, until we determine the right way to fix that.

diffstat:

 share/tmac/doc        |  5 ++---
 share/tmac/doc-common |  6 +++---
 share/tmac/doc-nroff  |  3 +--
 3 files changed, 6 insertions(+), 8 deletions(-)

diffs (70 lines):

diff -r 463addabc34f -r c99a13eaef4b share/tmac/doc
--- a/share/tmac/doc    Tue Mar 23 05:59:09 1999 +0000
+++ b/share/tmac/doc    Tue Mar 23 06:44:38 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: doc,v 1.21 1999/03/16 01:19:56 mycroft Exp $
+.\"    $NetBSD: doc,v 1.22 1999/03/23 06:44:38 mycroft Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -824,7 +824,7 @@
 .                                      ie \\n(nS>1 .br
 .                                      el \{\
 .                                              if \\n(iS==0 \{\
-.                                                      sW \\$1
+.                                                      sw \\$1
 .                                      nr iS ((\\n(sWu+1)*\\n(fW)u
 .                                              \}
 .                                      \}
@@ -2019,7 +2019,6 @@
 .      tm .It \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
 .\}
 .\" .tm Here is L[\\n(lC]==\\*(L\\n(lC
-.ne 3v
 .ie \\n(.$>0 \{\
 .      ds mN It
 .      ds b1
diff -r 463addabc34f -r c99a13eaef4b share/tmac/doc-common
--- a/share/tmac/doc-common     Tue Mar 23 05:59:09 1999 +0000
+++ b/share/tmac/doc-common     Tue Mar 23 06:44:38 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: doc-common,v 1.27 1999/03/16 01:19:56 mycroft Exp $
+.\"    $NetBSD: doc-common,v 1.28 1999/03/23 06:44:39 mycroft Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -298,7 +298,7 @@
 ..
 .de Pp
 .sp \\n(Ppu
-.ne 2
+.if !\\n(cR .ne 2
 .ns
 ..
 .de Lp
@@ -321,7 +321,7 @@
 ..
 .de Ss
 .sp
-.ne 3
+.if !\\n(cR .ne 3
 .ti -.25i
 \&\\*(sH\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9
 \&\fP\s0
diff -r 463addabc34f -r c99a13eaef4b share/tmac/doc-nroff
--- a/share/tmac/doc-nroff      Tue Mar 23 05:59:09 1999 +0000
+++ b/share/tmac/doc-nroff      Tue Mar 23 06:44:38 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: doc-nroff,v 1.6 1999/03/23 03:53:26 mycroft Exp $
+.\"    $NetBSD: doc-nroff,v 1.7 1999/03/23 06:44:39 mycroft Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -131,7 +131,6 @@
 .if "\\*(cH"Null" .if !"\\*(gP"Null" .as hT \&\|(\|\\*(gP\|)
 .ie \\n(cR \{\
 .      hM
-.      wh -1v fM
 .\}
 .el \{\
 .      wh 0 hM



Home | Main Index | Thread Index | Old Index