diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-12-28 17:34:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-12-28 17:34:18 +0000 |
commit | d7c46d2d16226010fc23d4fc28e1515a70a52ed3 (patch) | |
tree | daef3e4a96ce67b1d9d64938fca56436df268077 /mandoc.1 | |
parent | e3f5b4421b6d2e53c29f596fe31bbca8f1b4ca0c (diff) | |
download | mandoc-d7c46d2d16226010fc23d4fc28e1515a70a52ed3.tar.gz |
Make the second, section number argument of .Xr mandatory.
In fact, we have been requiring it for many years.
The only reason to not warn when it was missing
was excessive traditionalism - it was optional in 4.4BSD.
Diffstat (limited to 'mandoc.1')
-rw-r--r-- | mandoc.1 | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1147,6 +1147,13 @@ macro is immediately followed by an .Ic \&Re macro on the next input line. Such an empty block does not produce any output. +.It Sy "missing section argument" +.Pq mdoc +An +.Ic \&Xr +macro lacks its second, section number argument. +The first argument, i.e. the name, is printed, but without subsequent +parantheses. .It Sy "missing -std argument, adding it" .Pq mdoc An |