freebsd-nq/contrib/groff/tmac/strip.sed
Joerg Wunsch 6297a0e23f 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

5 lines
80 B
Sed

# $FreeBSD$
/%beginstrip%/,$s/[ ]*\\".*//
/^\.$/d
/%comment%/s/%comment%/.\\"/