This website requires JavaScript.
Explore
Help
Sign In
d
/
freebsd-skq
Watch
1
Star
0
Fork
0
You've already forked freebsd-skq
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
freebsd-skq
/
contrib
/
groff
/
tmac
/
strip.sed
5 lines
80 B
Sed
Raw
Normal View
History
Unescape
Escape
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.
2000-01-27 17:56:41 +00:00
# $FreeBSD$
Virgin import of FSF groff v1.10
1996-09-07 16:18:32 +00:00
/
%beginstrip%
/
,
$
s
/
[ ]*\\".*
/
/
/
^\.$
/
d
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.
2000-01-27 17:56:41 +00:00
/
%comment%
/
s
/
%comment%
/
.\\"
/
Reference in New Issue
Copy Permalink