diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-04-28 16:25:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-04-28 16:25:11 +0000 |
commit | 68e287f8a84e78c626e8440ced37035bd5359eff (patch) | |
tree | deea97dcb6e08470e5fdff2808a934f6294a3bcf /mdoc_validate.c | |
parent | 2d0ffb12fd226a8ad45b9f65ec2aab74fa62ec82 (diff) | |
download | mandoc-68e287f8a84e78c626e8440ced37035bd5359eff.tar.gz |
Delete .Pp right before the first .Sh and right before any .Ss,
and warn about it; mdoclint(1) does so, and it makes sense.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index e6ca9458..554520bc 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -2015,6 +2015,9 @@ post_ignpar(POST_ARGS) struct roff_node *np; switch (mdoc->last->type) { + case ROFFT_BLOCK: + post_prevpar(mdoc); + return; case ROFFT_HEAD: post_hyph(mdoc); return; |