diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-09-27 11:25:03 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-09-27 11:25:03 +0000 |
commit | b781ad2d9b6f130d2e32f62b690300e6a9d0000a (patch) | |
tree | 356ba07fa0adfc44d9aecab5dc9f02c126e9c48a /mdoc_validate.c | |
parent | 3c5734925c52ae38922a5f660600de0e47c5d4c2 (diff) | |
download | mandoc-b781ad2d9b6f130d2e32f62b690300e6a9d0000a.tar.gz |
Consider both `Lp' and `Pp' when stripping prior paragraph marks.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 7 |
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) |