From 781a8549c91f3a866d4fd39207cebde05258ba2a Mon Sep 17 00:00:00 2001 From: Jared Yanovich Date: Tue, 27 Sep 2005 18:57:18 +0000 Subject: 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@. --- share/tmac/mdoc/doc | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'share/tmac') 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 \{\ -- cgit v1.2.3