diff options
author | 2017-04-28 16:23:30 +0000 | |
---|---|---|
committer | 2017-04-28 16:23:30 +0000 | |
commit | 9c7c6a1f67324c9ef5934693846750b670b7ddce (patch) | |
tree | 6da16147fdb4790184d50ed757e9559071992c97 /usr.bin/mandoc/mdoc_validate.c | |
parent | Check that non existing log files in syslog.conf are reported to (diff) | |
download | wireguard-openbsd-9c7c6a1f67324c9ef5934693846750b670b7ddce.tar.xz wireguard-openbsd-9c7c6a1f67324c9ef5934693846750b670b7ddce.zip |
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 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_validate.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c index 3021db6eef9..c6994926dd5 100644 --- a/usr.bin/mandoc/mdoc_validate.c +++ b/usr.bin/mandoc/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_validate.c,v 1.236 2017/04/24 23:06:09 schwarze Exp $ */ +/* $OpenBSD: mdoc_validate.c,v 1.237 2017/04/28 16:23:30 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -2003,6 +2003,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; |