aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-04 22:30:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-04 22:30:10 +0000
commitaff7055e2d69b65767cc1314a7898f31abe2c74a (patch)
tree4d78a5ce7cd3996771e9a413cf9573be0313467f /mandoc.1
parent4d53b36358108c3838a8424f0958934d3dcf1af9 (diff)
downloadmandoc-aff7055e2d69b65767cc1314a7898f31abe2c74a.tar.gz
mandoc-aff7055e2d69b65767cc1314a7898f31abe2c74a.tar.zst
mandoc-aff7055e2d69b65767cc1314a7898f31abe2c74a.zip
Discard excess head arguments for .Bd .Bl .Bk and delete hwarn_eq0().
Discard empty .Bk blocks. Improve related diagnostics.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.119
1 files changed, 11 insertions, 8 deletions
diff --git a/mandoc.1 b/mandoc.1
index 5d811a48..2a542d9f 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.144 2015/02/04 19:20:12 schwarze Exp $
+.\" $Id: mandoc.1,v 1.145 2015/02/04 22:30:10 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -994,7 +994,8 @@ except that it may control a following
clause.
.It Sy "skipping empty macro"
.Pq mdoc
-The indicated macro has no arguments and hence no effect.
+The indicated macro has no arguments or no body content
+and hence no effect.
.It Sy "empty argument, using 0n"
.Pq mdoc
The required width is missing after
@@ -1636,14 +1637,16 @@ macro is invoked with another argument after
.Fl split
or
.Fl nosplit ,
-the
-.Ic \&Bf
-macro or the
-.Ic \&sp
-request is invoked with more than one argument, the
+.Ic \&Bd ,
+.Ic \&Bk ,
+or
+.Ic \&Bl
+are invoked with invalid arguments, the
.Ic \&RE
macro is invoked with more than one argument
-or with a non-integer argument, or a request of the
+or with a non-integer argument, the
+.Ic \&sp
+request is invoked with more than one argument, or a request of the
.Ic \&de
family is invoked with more than two arguments.
The excess arguments are ignored.