summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2001-01-23 06:29:34 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2001-01-23 06:29:34 +0000
commit5a0d2dac58166f09e64805b9e31599accb1e02d6 (patch)
tree094dc03e1dc52374a2fcdab2d0cccdad0a839046
parentd0a5fa42f1b6ebc23d23f9c1ba8eafa468923561 (diff)
Tweak to allow groff -Tdvi -mandoc ... to work.
The mdoc macros were re-defining a font alias needed when dvi output was selected. Note: due to groff dvi font limitiations -Tps produces nicer printed material than -Tdvi when using the mandoc macros. OK millert@
-rw-r--r--gnu/usr.bin/groff/tmac/tmac.dvi2
-rw-r--r--share/tmac/mdoc/doc8
2 files changed, 7 insertions, 3 deletions
diff --git a/gnu/usr.bin/groff/tmac/tmac.dvi b/gnu/usr.bin/groff/tmac/tmac.dvi
index 59c6df50d78..61ffb715d1e 100644
--- a/gnu/usr.bin/groff/tmac/tmac.dvi
+++ b/gnu/usr.bin/groff/tmac/tmac.dvi
@@ -1,5 +1,7 @@
.nr _C \n(.C
.cp 0
+.nr DVI 1
+.ftr CB CW
.ftr CR CW
.ftr C CW
.ftr TT CW
diff --git a/share/tmac/mdoc/doc b/share/tmac/mdoc/doc
index 585265d411a..7bd079bc0e0 100644
--- a/share/tmac/mdoc/doc
+++ b/share/tmac/mdoc/doc
@@ -1,4 +1,4 @@
-.\" $OpenBSD: doc,v 1.4 1999/11/15 03:21:30 aaron Exp $
+.\" $OpenBSD: doc,v 1.5 2001/01/23 06:29:33 marc Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -36,8 +36,10 @@
.\" .mdoc-parse - attempt to parse troff request arguments
.\" %beginstrip%
.if \n(.g \{\
-.cp 0
-.ftr C CR
+. cp 0
+. if !\n[DVI] \{\
+. ftr C CR
+. \}
.\}
.if t \{\
. so /usr/share/tmac/mdoc/doc-ditroff