diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-06 11:28:17 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-06 11:28:17 +0000 |
commit | aeb53baa584ae0fe0d04a3cd1e74f509d353e8c0 (patch) | |
tree | 00d440a16a75d6d270567180f1501a5506625605 /mdoc_validate.c | |
parent | 6d0ad067809e00ebce310fb6eb53a72a9874a704 (diff) | |
download | mandoc-aeb53baa584ae0fe0d04a3cd1e74f509d353e8c0.tar.gz |
Let `Bl' accept arguments on the head line with a warning (these are ignored in the front-end device) (noted by Theo de Raadt).
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index ef9fce61..46849243 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1103,8 +1103,9 @@ post_bl_head(POST_ARGS) if (n->args->argv[i].arg == MDOC_Column) break; - if (i == (int)n->args->argc) - return(1); + if (i == (int)n->args->argc && n->nchild) + return(warn_count(mdoc, "==", 0, + "line arguments", n->nchild)); if (n->args->argv[i].sz && mdoc->last->child) return(mdoc_nerr(mdoc, n, ECOLMIS)); |