aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-06 16:06:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-06 16:06:25 +0000
commitf5b94dbc5c8c520ba699b3625ee96b70beec3a75 (patch)
tree71ec0c7d6d8a379984f45d96e9e75b7d77eafaa4 /mandoc.1
parent70a62057d81d665dae089691140a2714bd510348 (diff)
downloadmandoc-f5b94dbc5c8c520ba699b3625ee96b70beec3a75.tar.gz
mandoc-f5b94dbc5c8c520ba699b3625ee96b70beec3a75.tar.zst
mandoc-f5b94dbc5c8c520ba699b3625ee96b70beec3a75.zip
replace the last legacy generic message type, "argument count wrong",
by more specific messages, improving diagnostics for .cc .tr .Bl -column
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.123
1 files changed, 16 insertions, 7 deletions
diff --git a/mandoc.1 b/mandoc.1
index 7f08e5a3..c30c210d 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.150 2015/02/06 11:54:36 schwarze Exp $
+.\" $Id: mandoc.1,v 1.151 2015/02/06 16:06:25 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -1201,6 +1201,15 @@ list has a
.Fl width
argument.
That has no effect.
+.It Sy "wrong number of cells"
+In a line of a
+.Ic \&Bl Fl column
+list, the number of tabs or
+.Ic \&Ta
+macros is less than the number expected from the list header line
+or exceeds the expected number by more than one.
+Missing cells remain empty, and all cells exceeding the number of
+columns are joined into one single cell.
.It Sy "unknown AT&T UNIX version"
.Pq mdoc
An
@@ -1252,6 +1261,12 @@ request or a
layout modifier has an unknown
.Ar font
argument.
+.It Sy "odd number of characters in request"
+.Pq roff
+A
+.Ic \&tr
+request contains an odd number of characters.
+The last character is mapped to the blank character.
.El
.Ss "Warnings related to plain text"
.Bl -ohang
@@ -1538,12 +1553,6 @@ When parsing for a request or a user-defined macro name to be called,
only the escape sequence is discarded.
The characters preceding it are used as the request or macro name,
the characters following it are used as the arguments to the request or macro.
-.It Sy "argument count wrong"
-.Pq mdoc , man , roff
-The indicated request or 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 request or macro in question.
-Note that the same message may also occur as a WARNING, see above.
.It Sy "NOT IMPLEMENTED: Bd -file"
.Pq mdoc
For security reasons, the