summaryrefslogtreecommitdiffstats
path: root/tbl_opts.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-28 17:32:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-28 17:32:07 +0000
commitd04af2267985bcac279f3ffad1ce6ee9fec2d44f (patch)
tree416a18e84777806b55f50c7fb1147e9c88c4ef4b /tbl_opts.c
parentb8a3bef0831e00e2921ed5feb59338efcca0984d (diff)
downloadmandoc-d04af2267985bcac279f3ffad1ce6ee9fec2d44f.tar.gz
* Polish tbl(7) error reporting.
* Do not print out macro names in tbl(7) data blocks. * Like with GNU tbl, let empty tables cause a blank line. * Avoid producing empty tables in -Tman.
Diffstat (limited to 'tbl_opts.c')
-rw-r--r--tbl_opts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tbl_opts.c b/tbl_opts.c
index 70fd3dff..45d87372 100644
--- a/tbl_opts.c
+++ b/tbl_opts.c
@@ -80,7 +80,8 @@ arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key)
switch (key) {
case KEY_DELIM:
- mandoc_msg(MANDOCERR_TBLEQN, tbl->parse, ln, *pos, NULL);
+ mandoc_vmsg(MANDOCERR_TBLOPT_EQN, tbl->parse,
+ ln, *pos, "%.*s", len, p + *pos);
want = 2;
break;
case KEY_TAB: