From 209ac2d0d52f275c56bd4acb912e0e5d5a2d5e9a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 22 Dec 2010 22:05:38 +0000 Subject: 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@ --- mdoc_validate.c | 8 +++++--- 1 file 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; -- cgit