summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-09 20:11:31 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-09 20:11:31 +0000
commit91900e50d13a6358e6b5a8f1946cf57b89cc450b (patch)
tree9c7f992ae12d940a19cc6417c0adf2e8581d87a5 /usr.bin/mandoc/mdoc_validate.c
parenta7c3409c62f87e1b1f48342c5ca71020b8fe76ac (diff)
sync to 1.8.3: In .Bl -column, handle one column in excess,
but still issue a warning
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r--usr.bin/mandoc/mdoc_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index 27d553cdfeb..92f793aa4ca 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.32 2009/08/09 17:38:24 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.33 2009/08/09 20:11:30 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1025,7 +1025,7 @@ post_it(POST_ARGS)
for (i = 0; c && MDOC_HEAD == c->type; c = c->next)
i++;
- if (i < cols) {
+ if (i < cols || i == (cols + 1)) {
if ( ! mdoc_vwarn(mdoc, mdoc->last->line,
mdoc->last->pos, "column "
"mismatch: have %d, want %d",