diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-08-28 10:58:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-08-28 10:58:31 +0000 |
commit | 987b06113fad7f62388895986dd119ed2fa17a5c (patch) | |
tree | 30ff5ccd4b05e59110857dbc062e4ef6a8cb4002 /tbl_term.c | |
parent | dbaed491a737e6f059cd8121326de7b6831b8a9b (diff) | |
download | mandoc-987b06113fad7f62388895986dd119ed2fa17a5c.tar.gz |
Stop skipping vertical space after boxed tables.
Skipping such space used to be a bug in GNU tbl(1), and a kludge
was added to mandoc to produce identical output.
The bug was fixed in groff commit 8818c07c Jul 30 2022 gbranden@
https://savannah.gnu.org/bugs/index.php?49390
Consequently, now is the time to get rid of the kludge.
Diffstat (limited to 'tbl_term.c')
-rw-r--r-- | tbl_term.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -549,15 +549,11 @@ term_tbl(struct termp *tp, const struct tbl_span *sp) tp->flags &= ~TERMP_MULTICOL; tp->tcol->rmargin = tp->maxrmargin; if (sp->next == NULL) { - if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) { + if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) tbl_hrule(tp, sp, sp, NULL, TBL_OPT_BOX); - tp->skipvsp = 1; - } if (tp->enc == TERMENC_ASCII && - sp->opts->opts & TBL_OPT_DBOX) { + sp->opts->opts & TBL_OPT_DBOX) tbl_hrule(tp, sp, sp, NULL, TBL_OPT_DBOX); - tp->skipvsp = 2; - } assert(tp->tbl.cols); free(tp->tbl.cols); tp->tbl.cols = NULL; |