summaryrefslogtreecommitdiffstats
path: root/tbl_layout.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
commit2db1b6bde4abe38f4836e766eac615660b2f85c2 (patch)
treef103cfddb098081641c520d96c4a4cb17d77c915 /tbl_layout.c
parent619229efd1f5f1aefbec0666e7effe0039234d0c (diff)
downloadmandoc-2db1b6bde4abe38f4836e766eac615660b2f85c2.tar.gz
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_layout.c')
-rw-r--r--tbl_layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tbl_layout.c b/tbl_layout.c
index b78e8881..004f33cc 100644
--- a/tbl_layout.c
+++ b/tbl_layout.c
@@ -168,6 +168,9 @@ mod:
goto mod;
case 'w': /* XXX for now, ignore minimal column width */
goto mod;
+ case 'x':
+ cp->flags |= TBL_CELL_WMAX;
+ goto mod;
case 'f':
break;
case 'r':