diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-15 00:27:24 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-15 00:27:24 +0000 |
commit | 472a05f97a0d0bcf29b841bc8dd76a974f69a6ea (patch) | |
tree | ca620d528bb94bc71fdef528afe54fb8ca58bf1a /usr.bin | |
parent | d85e2a30153fda2c6076da0ced09ab2e6f928d48 (diff) |
round default width of tbl(7) text blocks in the same way as groff
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/out.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/out.c b/usr.bin/mandoc/out.c index a0607fdf076..0a6daf4bfc7 100644 --- a/usr.bin/mandoc/out.c +++ b/usr.bin/mandoc/out.c @@ -1,4 +1,4 @@ -/* $OpenBSD: out.c,v 1.40 2017/06/14 18:23:26 schwarze Exp $ */ +/* $OpenBSD: out.c,v 1.41 2017/06/15 00:27:22 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -155,7 +155,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); } } |