aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-12 20:14:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-12 20:14:18 +0000
commitb9afab5e3f173e16ac169b27fa39efd01ea9afe7 (patch)
treef9f8499bf43fd06517a1fa6d47a76d0896583355 /tbl_term.c
parente0177b9bff2cd6141e183411fe5a31f6ba8fe1a9 (diff)
downloadmandoc-b9afab5e3f173e16ac169b27fa39efd01ea9afe7.tar.gz
mandoc-b9afab5e3f173e16ac169b27fa39efd01ea9afe7.tar.zst
mandoc-b9afab5e3f173e16ac169b27fa39efd01ea9afe7.zip
fix column width calculation for text block cells
Diffstat (limited to 'tbl_term.c')
-rw-r--r--tbl_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl_term.c b/tbl_term.c
index 36fa2b70..5af39df3 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_term.c,v 1.47 2017/06/12 19:05:47 schwarze Exp $ */
+/* $Id: tbl_term.c,v 1.48 2017/06/12 20:14:18 schwarze Exp $ */
/*
* Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011,2012,2014,2015,2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -87,7 +87,7 @@ term_tbl(struct termp *tp, const struct tbl_span *sp)
tp->tbl.sulen = term_tbl_sulen;
tp->tbl.arg = tp;
- tblcalc(&tp->tbl, sp, tp->tcol->rmargin - tp->tcol->offset);
+ tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin);
/* Center the table as a whole. */