summaryrefslogtreecommitdiffstats
path: root/out.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-15 00:27:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-15 00:27:52 +0000
commit7a6175f17cfb7cc37dea1c98c65b6fccaf92f619 (patch)
treee73b909eedbdc81ac6a7a93a3e5af2269fee4c90 /out.c
parentff7404ec88115f451afc869f7330722a3bb3e41e (diff)
downloadmandoc-7a6175f17cfb7cc37dea1c98c65b6fccaf92f619.tar.gz
round default width of tbl(7) text blocks in the same way as groff
Diffstat (limited to 'out.c')
-rw-r--r--out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/out.c b/out.c
index 2dc09900..267e13ab 100644
--- a/out.c
+++ b/out.c
@@ -157,7 +157,8 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp,
tblcalc_data(tbl, col, opts, dp,
dp->block == 0 ? 0 :
dp->layout->width ? dp->layout->width :
- rmargin ? rmargin / (sp->opts->cols + 1) : 0);
+ rmargin ? (rmargin + sp->opts->cols / 2)
+ / (sp->opts->cols + 1) : 0);
}
}