diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-06 17:26:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-06 17:26:04 +0000 |
commit | 78f3b980a3571b0a981193a493a0291762bd2aca (patch) | |
tree | 677a7e13080f682d4bd8540edae3277db581341b /mandoc.1 | |
parent | 006240c00075748ea6caaf15bc37a67cf3454ee5 (diff) | |
download | mandoc-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.1 | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. |