summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-06 17:26:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-06 17:26:04 +0000
commit78f3b980a3571b0a981193a493a0291762bd2aca (patch)
tree677a7e13080f682d4bd8540edae3277db581341b /mandoc.1
parent006240c00075748ea6caaf15bc37a67cf3454ee5 (diff)
downloadmandoc-78f3b980a3571b0a981193a493a0291762bd2aca.tar.gz
Using .Nd only makes sense in the NAME section.
Warn if that macro occurs elsewhere. Triggered by a question from Dag-Erling Smoergrav <des @ FreeBSD>.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.18
1 files changed, 8 insertions, 0 deletions
diff --git a/mandoc.1 b/mandoc.1
index a9b7d694..ab49f5e8 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -908,6 +908,14 @@ The
.Ic \&Nd
macro lacks the required argument.
The title line of the manual will end after the dash.
+.It Sy "description line outside NAME section"
+.Pq mdoc
+An
+.Ic \&Nd
+macro appears outside the NAME section.
+The arguments are printed anyway and the following text is used for
+.Xr apropos 1 ,
+but none of that behaviour is portable.
.It Sy "sections out of conventional order"
.Pq mdoc
A standard section occurs after another section it usually precedes.