aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-06 07:13:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-06 07:13:14 +0000
commit7fefe85053961b17df364545120a269be409beb4 (patch)
tree6d94494870630a9f491e0b4a94211c5beea6e4ba /mandoc.1
parent7dfe6b3fdffd0ff76af3e3d347b0f300fddb15e8 (diff)
downloadmandoc-7fefe85053961b17df364545120a269be409beb4.tar.gz
mandoc-7fefe85053961b17df364545120a269be409beb4.tar.zst
mandoc-7fefe85053961b17df364545120a269be409beb4.zip
Delete the legacy generic warning type MANDOCERR_ARGCWARN,
replacing the last instances by more specific warnings. Improved functionality, minus 50 lines of code.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.123
1 files changed, 14 insertions, 9 deletions
diff --git a/mandoc.1 b/mandoc.1
index 3e2a2d06..f453a208 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.146 2015/02/06 03:38:45 schwarze Exp $
+.\" $Id: mandoc.1,v 1.147 2015/02/06 07:13:14 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -994,8 +994,19 @@ except that it may control a following
clause.
.It Sy "skipping empty macro"
.Pq mdoc
-The indicated macro has no arguments or no body content
-and hence no effect.
+The indicated macro has no arguments and hence no effect.
+.It Sy "empty block"
+.Pq mdoc , man
+A
+.Ic \&Bd ,
+.Ic \&Bk ,
+.Ic \&Bl ,
+.Ic \&D1 ,
+.Ic \&Dl ,
+.Ic \&RS ,
+or
+.Ic \&UR
+block contains nothing in its body and will produce no output.
.It Sy "empty argument, using 0n"
.Pq mdoc
The required width is missing after
@@ -1005,12 +1016,6 @@ or
.Fl offset
or
.Fl width.
-.It Sy "argument count wrong"
-.Pq mdoc , man
-The indicated macro has too few or too many arguments.
-The syntax tree will contain the wrong number of arguments as given.
-Formatting behaviour depends on the specific macro in question.
-Note that the same message may also occur as an ERROR, see below.
.It Sy "missing display type, using -ragged"
.Pq mdoc
The