diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-28 17:32:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-28 17:32:07 +0000 |
commit | d04af2267985bcac279f3ffad1ce6ee9fec2d44f (patch) | |
tree | 416a18e84777806b55f50c7fb1147e9c88c4ef4b /roff.c | |
parent | b8a3bef0831e00e2921ed5feb59338efcca0984d (diff) | |
download | mandoc-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 'roff.c')
-rw-r--r-- | roff.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2376,9 +2376,12 @@ roff_TE(ROFF_ARGS) if (NULL == r->tbl) mandoc_msg(MANDOCERR_BLK_NOTOPEN, r->parse, ln, ppos, "TE"); - else - tbl_end(&r->tbl); - + else if ( ! tbl_end(&r->tbl)) { + free(buf->buf); + buf->buf = mandoc_strdup(".sp"); + buf->sz = 4; + return(ROFF_REPARSE); + } return(ROFF_IGN); } |