diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-14 14:34:29 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-14 14:34:29 +0000 |
commit | a5b44930259178b9311a0eef635790ba1fda0a1a (patch) | |
tree | 3837c554a85489ce0fa3835de3a23d4d3baac03c /mdoc_validate.c | |
parent | 1c492a624d9a33e3c9c34bc739a87695fc5674cb (diff) | |
download | mandoc-a5b44930259178b9311a0eef635790ba1fda0a1a.tar.gz |
"If the last column wasn't specified, it is auto-sized." (patch by Joerg Sonnenberger)
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
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, |