summaryrefslogtreecommitdiffstats
path: root/share/tmac
diff options
context:
space:
mode:
authorjaredy <jaredy@openbsd.org>2005-09-27 18:57:17 +0000
committerjaredy <jaredy@openbsd.org>2005-09-27 18:57:17 +0000
commit376d793a1848378b47e76a8181a8aefd87bc7f71 (patch)
treec82c5886654b72c9aadb0255ac9910856932601a /share/tmac
parentFix another case of inconstitent error handling that was missed in the (diff)
downloadwireguard-openbsd-376d793a1848378b47e76a8181a8aefd87bc7f71.tar.xz
wireguard-openbsd-376d793a1848378b47e76a8181a8aefd87bc7f71.zip
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 \{\