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 | c30903de74e443fffffd9d160ef6911d2d434468 (patch) | |
tree | 3ef915c858f0f89cb3b1348940352e114086b827 /mandoc.1 | |
parent | 2da973e1cbee8826e4ccfd50d7f8ab5517bd9006 (diff) | |
download | mandoc-c30903de74e443fffffd9d160ef6911d2d434468.tar.gz mandoc-c30903de74e443fffffd9d160ef6911d2d434468.tar.zst mandoc-c30903de74e443fffffd9d160ef6911d2d434468.zip |
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 | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.176 2017/03/04 17:17:34 schwarze Exp $ +.\" $Id: mandoc.1,v 1.177 2017/03/06 17:26:04 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,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: March 4 2017 $ +.Dd $Mdocdate: March 6 2017 $ .Dt MANDOC 1 .Os .Sh NAME @@ -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. |