From 29faaf9040c5e238e8b14faf2d795d1cda4b2edc Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 15 Jun 2017 00:27:52 +0000 Subject: round default width of tbl(7) text blocks in the same way as groff --- out.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'out.c') diff --git a/out.c b/out.c index 95720c53..5fd15343 100644 --- a/out.c +++ b/out.c @@ -1,4 +1,4 @@ -/* $Id: out.c,v 1.68 2017/06/14 18:23:37 schwarze Exp $ */ +/* $Id: out.c,v 1.69 2017/06/15 00:27:52 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze @@ -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); } } -- cgit v1.2.3