aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-06 11:28:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-06 11:28:17 +0000
commit80afe8e5f638df0bd4a6db2145ae2babd9ede57d (patch)
treeb5184c1937b02ef44c242c520f8e51e84d2a3655 /mdoc_validate.c
parent5c1741ee5854b0a14d5daee8a6b5a0a8616c4692 (diff)
downloadmandoc-80afe8e5f638df0bd4a6db2145ae2babd9ede57d.tar.gz
mandoc-80afe8e5f638df0bd4a6db2145ae2babd9ede57d.tar.zst
mandoc-80afe8e5f638df0bd4a6db2145ae2babd9ede57d.zip
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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index a08ca405..a60a5e99 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.63 2010/04/03 14:25:12 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.64 2010/04/06 11:28:17 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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));