diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-30 00:19:16 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-30 00:19:16 +0000 |
commit | 146dcfc953f48acd462342b3dfc86200e3e0a195 (patch) | |
tree | 0d9ad99301bef877f5f3f9f3a12ec73e0626d84d /read.c | |
parent | 308a6398bf0d71bbf420513b557132e32e95285d (diff) | |
download | mandoc-146dcfc953f48acd462342b3dfc86200e3e0a195.tar.gz |
Various improvements related to .Ex and .Rv:
* let .Nm fall back to the empty string, not to UNKNOWN
* never let .Rv copy an argument from .Nm
* avoid spurious \fR after empty .Nm in -Tman
* correct handling of .Ex and .Rv in -Tman
* correct the wording of the output for .Rv without arguments
* use non-breaking spaces in .Ex and .Rv output where required
* split MANDOCERR_NONAME into a warning for .Ex and an error for .Nm
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -136,6 +136,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "missing display type, using -ragged", "list type is not the first argument", "missing -width in -tag list, using 8n", + "missing name for .Ex, using \"\"", "empty head in list item", "empty list item", "missing font type, using \\fR", @@ -191,8 +192,8 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { /* related to request and macro arguments */ "escaped character not allowed in a name", - "manual name not yet set", "argument count wrong", + "missing manual name, using \"\"", "unknown standard specifier", "uname(3) system call failed", "request requires a numeric argument", |