From a5b44930259178b9311a0eef635790ba1fda0a1a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 14 May 2010 14:34:29 +0000 Subject: "If the last column wasn't specified, it is auto-sized." (patch by Joerg Sonnenberger) --- mdoc_validate.c | 4 ++-- 1 file 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, -- cgit