diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2010-12-22 22:05:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2010-12-22 22:05:38 +0000 |
commit | 209ac2d0d52f275c56bd4acb912e0e5d5a2d5e9a (patch) | |
tree | 4d99f0a73ce950cfa911db1ebb2cf9c2c4d66854 /mdoc_validate.c | |
parent | 916d816563107e6cc9968f15b06bd97c213c7d69 (diff) | |
download | mandoc-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@
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 8 |
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; |