summaryrefslogtreecommitdiffstats
path: root/validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'validate.c')
-rw-r--r--validate.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/validate.c b/validate.c
index 7da4a197..e453352f 100644
--- a/validate.c
+++ b/validate.c
@@ -1187,15 +1187,13 @@ post_it(POST_ARGS)
if (mdoc->last->body->child)
if ( ! mwarn(mdoc, WNOMULTILINE))
return(0);
- c = mdoc->last->head;
+ c = mdoc->last->child;
for (i = 0; c && MDOC_HEAD == c->type; c = c->next)
i++;
if (i == cols)
break;
- if ( ! mdoc_warn(mdoc, WARN_SYNTAX,
- "column mismatch (have %d, want %d)", i, cols))
- return(0);
- break;
+ return(mdoc_err(mdoc, "column mismatch (have "
+ "%d, want %d)", i, cols));
default:
break;
}