From 67cfc20e20f4c603c852ddf5c88024ce0d8d628c Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 28 Jan 2015 17:32:07 +0000 Subject: * 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. --- tbl_opts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tbl_opts.c') 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 * Copyright (c) 2015 Ingo Schwarze @@ -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: -- cgit v1.2.3-56-ge451