aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit67cfc20e20f4c603c852ddf5c88024ce0d8d628c (patch)
tree5e3c7114721eba342929a649511dbf5a94439d6c /tbl_opts.c
parent7793230177d864fb80c0c572a2b896f3ecb7df10 (diff)
downloadmandoc-67cfc20e20f4c603c852ddf5c88024ce0d8d628c.tar.gz
mandoc-67cfc20e20f4c603c852ddf5c88024ce0d8d628c.tar.zst
mandoc-67cfc20e20f4c603c852ddf5c88024ce0d8d628c.zip
* 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tbl_opts.c b/tbl_opts.c
index 222c6e86..c012a3c8 100644
--- a/tbl_opts.c
+++ b/tbl_opts.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_opts.c,v 1.19 2015/01/28 15:03:45 schwarze Exp $ */
+/* $Id: tbl_opts.c,v 1.20 2015/01/28 17:32:07 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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: