summaryrefslogtreecommitdiff
path: root/share/tmac
diff options
context:
space:
mode:
authorJared Yanovich <jaredy@cvs.openbsd.org>2005-09-27 18:57:18 +0000
committerJared Yanovich <jaredy@cvs.openbsd.org>2005-09-27 18:57:18 +0000
commit781a8549c91f3a866d4fd39207cebde05258ba2a (patch)
tree30680fe51ec091bd7ffd6013126bcf682e9927b3 /share/tmac
parentc7cc9c745cb8dec915a0b3e546662a269fcc79a6 (diff)
Allow `.An' to be given a -split/-nosplit flag to toggle the behavior of
causing line breaks to occur, as is present in newer versions of groff. OK deraadt@, jmc@.
Diffstat (limited to 'share/tmac')
-rw-r--r--share/tmac/mdoc/doc17
1 files changed, 12 insertions, 5 deletions
diff --git a/share/tmac/mdoc/doc b/share/tmac/mdoc/doc
index 3873ead45a9..a367253e7f4 100644
--- a/share/tmac/mdoc/doc
+++ b/share/tmac/mdoc/doc
@@ -1,4 +1,4 @@
-.\" $OpenBSD: doc,v 1.15 2004/06/06 22:38:09 jmc Exp $
+.\" $OpenBSD: doc,v 1.16 2005/09/27 18:57:17 jaredy Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -3456,20 +3456,27 @@ File:
.\" NS An macro - author name
.\" NS aN register
.nr aN 0
+.nr aS 1
.de An
.if \\n(nY==1 \{\
. ie \\n(aN==1 \{\
-. br
+. if \\n(aS==1 .br
. \}
. el \{\
. nr aN 1
. \}
.\}
.if \\n(aC==0 \{\
-. ie \\n(.$==0 .tm Usage: .An author_name ... \\*(Pu (#\\n(.c)
+. ie \\n(.$==0 .tm Usage: .An -nosplit | -split | author_name ... \\*(Pu (#\\n(.c)
. el \{\
-. ds mN An
-. aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
+. ie "\\$1"-nosplit" .nr aS 0
+. el \{\
+. ie "\\$1"-split" .nr aS 1
+. el \{\
+. ds mN An
+. aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
+. \}
+. \}
. \}
.\}
.if \\n(aC>\\n(aP \{\