summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-14 14:34:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-14 14:34:29 +0000
commita5b44930259178b9311a0eef635790ba1fda0a1a (patch)
tree3837c554a85489ce0fa3835de3a23d4d3baac03c
parent1c492a624d9a33e3c9c34bc739a87695fc5674cb (diff)
downloadmandoc-a5b44930259178b9311a0eef635790ba1fda0a1a.tar.gz
"If the last column wasn't specified, it is auto-sized." (patch by Joerg Sonnenberger)
-rw-r--r--mdoc_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 41207cab..8d9e2b0f 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1039,14 +1039,14 @@ post_it(POST_ARGS)
for (i = 0; c && MDOC_HEAD == c->type; c = c->next)
i++;
- if (i < cols || i == (cols + 1)) {
+ if (i < cols) {
if ( ! mdoc_vwarn(mdoc, mdoc->last->line,
mdoc->last->pos, "column "
"mismatch: have %d, want %d",
i, cols))
return(0);
break;
- } else if (i == cols)
+ } else if (i == cols || i == cols + 1)
break;
return(mdoc_verr(mdoc, mdoc->last->line,