diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-15 00:27:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-15 00:27:52 +0000 |
commit | 7a6175f17cfb7cc37dea1c98c65b6fccaf92f619 (patch) | |
tree | e73b909eedbdc81ac6a7a93a3e5af2269fee4c90 /out.c | |
parent | ff7404ec88115f451afc869f7330722a3bb3e41e (diff) | |
download | mandoc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } } |