Fix a problem that caused the generation of an (almost) empty first
page of -mdoc manual pages in troff mode. The problem has been introduced in rev 1.12; apparently ending a line inside a macro definition with \c doesn't behave as Bill expected, and troff was fooled to believe previous output was already pending thus a new page needed to be emitted. Using a troff comment .\" instead of \c seems to solve this, alas the brain^Wnice sed(1) magic needs to be taught to _not_ strip those comments now. I think -stable is not affected by this.
This commit is contained in:
parent
620b32bddd
commit
fac8c3bf38
@ -231,34 +231,34 @@
|
||||
.\}
|
||||
.if "\\$1"FreeBSD" \{\
|
||||
. if "\\$2"2" .ds oS FreeBSD 2.0
|
||||
. ie \\n(.$==1 \c
|
||||
. el .ie "\\$2"1.0" \c
|
||||
. el .ie "\\$2"1.1" \c
|
||||
. el .ie "\\$2"1.1.5" \c
|
||||
. el .ie "\\$2"1.1.5.1" \c
|
||||
. el .ie "\\$2"2" \c
|
||||
. el .ie "\\$2"2.0" \c
|
||||
. el .ie "\\$2"2.0.5" \c
|
||||
. el .ie "\\$2"2.1" \c
|
||||
. el .ie "\\$2"2.1.5" \c
|
||||
. el .ie "\\$2"2.1.6" \c
|
||||
. el .ie "\\$2"2.1.7" \c
|
||||
. el .ie "\\$2"2.2" \c
|
||||
. el .ie "\\$2"2.2.1" \c
|
||||
. el .ie "\\$2"2.2.2" \c
|
||||
. el .ie "\\$2"2.2.5" \c
|
||||
. el .ie "\\$2"2.2.6" \c
|
||||
. el .ie "\\$2"2.2.7" \c
|
||||
. el .ie "\\$2"2.2.8" \c
|
||||
. el .ie "\\$2"3" \c
|
||||
. el .ie "\\$2"3.0" \c
|
||||
. el .ie "\\$2"3.1" \c
|
||||
. el .ie "\\$2"3.2" \c
|
||||
. el .ie "\\$2"3.3" \c
|
||||
. el .ie "\\$2"3.4" \c
|
||||
. el .ie "\\$2"3.5" \c
|
||||
. el .ie "\\$2"4" \c
|
||||
. el .ie "\\$2"4.0" \c
|
||||
. ie \\n(.$==1 %comment%
|
||||
. el .ie "\\$2"1.0" %comment%
|
||||
. el .ie "\\$2"1.1" %comment%
|
||||
. el .ie "\\$2"1.1.5" %comment%
|
||||
. el .ie "\\$2"1.1.5.1" %comment%
|
||||
. el .ie "\\$2"2" %comment%
|
||||
. el .ie "\\$2"2.0" %comment%
|
||||
. el .ie "\\$2"2.0.5" %comment%
|
||||
. el .ie "\\$2"2.1" %comment%
|
||||
. el .ie "\\$2"2.1.5" %comment%
|
||||
. el .ie "\\$2"2.1.6" %comment%
|
||||
. el .ie "\\$2"2.1.7" %comment%
|
||||
. el .ie "\\$2"2.2" %comment%
|
||||
. el .ie "\\$2"2.2.1" %comment%
|
||||
. el .ie "\\$2"2.2.2" %comment%
|
||||
. el .ie "\\$2"2.2.5" %comment%
|
||||
. el .ie "\\$2"2.2.6" %comment%
|
||||
. el .ie "\\$2"2.2.7" %comment%
|
||||
. el .ie "\\$2"2.2.8" %comment%
|
||||
. el .ie "\\$2"3" %comment%
|
||||
. el .ie "\\$2"3.0" %comment%
|
||||
. el .ie "\\$2"3.1" %comment%
|
||||
. el .ie "\\$2"3.2" %comment%
|
||||
. el .ie "\\$2"3.3" %comment%
|
||||
. el .ie "\\$2"3.4" %comment%
|
||||
. el .ie "\\$2"3.5" %comment%
|
||||
. el .ie "\\$2"4" %comment%
|
||||
. el .ie "\\$2"4.0" %comment%
|
||||
. el .tm Unknown FreeBSD version ``\\$2'' at line \\n(c.
|
||||
.\}
|
||||
.if "\\*(oS"Null" \{\
|
||||
|
@ -1,2 +1,4 @@
|
||||
# $FreeBSD$
|
||||
/%beginstrip%/,$s/[ ]*\\".*//
|
||||
/^\.$/d
|
||||
/%comment%/s/%comment%/.\\"/
|
||||
|
Loading…
Reference in New Issue
Block a user