summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdoc_validate.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 0f1d8a1d..fdadcb7a 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1473,7 +1473,12 @@ static int
pre_pp(PRE_ARGS)
{
- if (NULL == mdoc->last || MDOC_Pp != mdoc->last->tok)
+ if (NULL == mdoc->last)
+ return(1);
+
+ /* Don't allow prior `Lp' or `Pp'. */
+
+ if (MDOC_Pp != mdoc->last->tok && MDOC_Lp != mdoc->last->tok)
return(1);
if (MDOC_Bl == n->tok && n->data.Bl->comp)