summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-12-22 22:05:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-12-22 22:05:38 +0000
commit209ac2d0d52f275c56bd4acb912e0e5d5a2d5e9a (patch)
tree4d99f0a73ce950cfa911db1ebb2cf9c2c4d66854
parent916d816563107e6cc9968f15b06bd97c213c7d69 (diff)
downloadmandoc-209ac2d0d52f275c56bd4acb912e0e5d5a2d5e9a.tar.gz
At the beginning of .Bl, .Sm is allowed,
and .Lp should cause a warning, not an error. "I don't suppose I mind this." kristaps@
-rw-r--r--mdoc_validate.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 487a8d3f..f0ae72c1 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1573,12 +1573,14 @@ post_bl(POST_ARGS)
for (n = mdoc->last->child; n; n = n->next) {
switch (n->tok) {
- case (MDOC_It):
- continue;
- case (MDOC_Sm):
+ case (MDOC_Lp):
/* FALLTHROUGH */
case (MDOC_Pp):
mdoc_nmsg(mdoc, n, MANDOCERR_CHILD);
+ /* FALLTHROUGH */
+ case (MDOC_It):
+ /* FALLTHROUGH */
+ case (MDOC_Sm):
continue;
default:
break;