summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-06-24 00:16:53 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-06-24 00:16:53 +0000
commit684d83cec1cf6b14bd257f0567efbc653957af5c (patch)
treeb885002d1d7852e3a6859c01967b80cd5cef9d1a /usr.bin
parentf1a73e651f96b726f481286bc2a6f507e3680803 (diff)
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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/mdoc.725
1 files changed, 22 insertions, 3 deletions
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 <kristaps@kth.se>
.\"
@@ -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