aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-14 02:16:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-14 02:16:06 +0000
commita7ddb6ec4103182af944faf6e8eab831579a19ba (patch)
tree888b4a23a0606ef2d871f1d96b28cdae5ce8001f /tbl_term.c
parent2b61f99bf2ba76a47538698f550c82f40a531253 (diff)
downloadmandoc-a7ddb6ec4103182af944faf6e8eab831579a19ba.tar.gz
mandoc-a7ddb6ec4103182af944faf6e8eab831579a19ba.tar.zst
mandoc-a7ddb6ec4103182af944faf6e8eab831579a19ba.zip
Rudimentary implementation of the e, x, and z table layout modifiers
to equalize, maximize, and ignore the width of columns. Does not yet take vertical rulers into account, and does not do line breaks within table cells. Considerably improves the lftp(1) manual; issue noticed by sthen@.
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 32fd1a78..6a733506 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_term.c,v 1.29 2014/10/13 23:31:46 schwarze Exp $ */
+/* $Id: tbl_term.c,v 1.30 2014/10/14 02:16:06 schwarze Exp $ */
/*
* Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -91,7 +91,7 @@ term_tbl(struct termp *tp, const struct tbl_span *sp)
tp->tbl.slen = term_tbl_strlen;
tp->tbl.arg = tp;
- tblcalc(&tp->tbl, sp);
+ tblcalc(&tp->tbl, sp, rmargin - tp->offset);
}
/* Horizontal frame at the start of boxed tables. */