summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-15 22:50:29 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-15 22:50:29 +0000
commit6dc483976756885c0e37f520770a46a87a3055ce (patch)
tree96a05f55a8549139736deb0a0e19459d45bba891
parent55ebf4dd31d503ce1f71aa4a0737111c787b3c7e (diff)
For now, parse and ignore minimal column width specifications.
First step to get terminfo(5) to build.
-rw-r--r--usr.bin/mandoc/tbl_layout.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mandoc/tbl_layout.c b/usr.bin/mandoc/tbl_layout.c
index d861c8da294..7fa9610e864 100644
--- a/usr.bin/mandoc/tbl_layout.c
+++ b/usr.bin/mandoc/tbl_layout.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_layout.c,v 1.2 2010/10/15 21:33:47 schwarze Exp $ */
+/* $Id: tbl_layout.c,v 1.3 2010/10/15 22:50:28 schwarze Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -119,6 +119,11 @@ mods(struct tbl *tbl, struct tbl_cell *cp, const char *p,
case ('Z'):
cp->flags |= TBL_CELL_WIGN;
return(mods(tbl, cp, p, pp + 1, f, ln, pos));
+ case ('w'):
+ /* FALLTHROUGH */
+ case ('W'): /* XXX for now, ignore minimal column width */
+ while (isdigit((u_char)p[++pp]));
+ return(mods(tbl, cp, p, pp, f, ln, pos));
case ('u'):
/* FALLTHROUGH */
case ('U'):