summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-10-15 22:50:28 +0000
committerschwarze <schwarze@openbsd.org>2010-10-15 22:50:28 +0000
commit5f8ff41c57be2274dd44e77404859434d94ede9a (patch)
tree9b07fea477b3f618c33e33d1cd769d440c9165dc
parentDo not crash on spanned headings. (diff)
downloadwireguard-openbsd-5f8ff41c57be2274dd44e77404859434d94ede9a.tar.xz
wireguard-openbsd-5f8ff41c57be2274dd44e77404859434d94ede9a.zip
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'):