From 684d83cec1cf6b14bd257f0567efbc653957af5c Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 24 Jun 2009 00:16:53 +0000 Subject: sync to 1.7.20: minimum requirements for -mdoc documents; while merging, avoid having two STRUCTURE sections; the fix for the latter problem was also submitted upstream --- usr.bin/mandoc/mdoc.7 | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'usr.bin/mandoc/mdoc.7') diff --git a/usr.bin/mandoc/mdoc.7 b/usr.bin/mandoc/mdoc.7 index 47b4645dc40..6ac470d2672 100644 --- a/usr.bin/mandoc/mdoc.7 +++ b/usr.bin/mandoc/mdoc.7 @@ -1,4 +1,4 @@ -.\" $Id: mdoc.7,v 1.5 2009/06/21 19:09:58 schwarze Exp $ +.\" $Id: mdoc.7,v 1.6 2009/06/24 00:16:52 schwarze Exp $ .\" .\" Copyright (c) 2009 Kristaps Dzonsons .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 21 2009 $ +.Dd $Mdocdate: June 24 2009 $ .Dt MDOC 7 .Os .\" SECTION @@ -139,6 +139,20 @@ Characters may alternatively be escaped by a slash-asterisk, with the same combinations as described above. This form is deprecated. .\" SECTION .Sh STRUCTURE +Each +.Nm +document must begin with the document prologue, containing, in order, +.Sq \&.Dd , +.Sq \&.Dt , +and +.Sq \&.Os . +Following these, the document body must begin with the NAME section +containing at least one +.Sq \&.Nm +followed by a +.Sq \&.Nd +macro. +.Pp Macros are classified in an ontology described by their scope rules. Some macros are allowed to deviate from their classifications to preserve backward-compatibility with old macro combinations still found @@ -278,7 +292,7 @@ In-lines have \(>=0 scoped arguments. \&.Yy \(lB\-arg \(lBval...\(rB\(rB arg0 arg1 argN .Ed -.\" +.\" SECTION .Sh MACROS This section contains a complete list of all .Nm @@ -618,4 +632,9 @@ etc.). There's no way to refer to references in .Sq \&.Rs/.Re blocks. +.\" LIST-ITEM +.It +The \-split and \-nosplit arguments to +.Sq \&.An +are inane. .El -- cgit v1.2.3