summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-08-28 10:58:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-08-28 10:58:31 +0000
commit987b06113fad7f62388895986dd119ed2fa17a5c (patch)
tree30ff5ccd4b05e59110857dbc062e4ef6a8cb4002
parentdbaed491a737e6f059cd8121326de7b6831b8a9b (diff)
downloadmandoc-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.
-rw-r--r--tbl_term.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tbl_term.c b/tbl_term.c
index 9e8f9e38..b5653a91 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -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;