diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-01 21:44:47 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-01 21:44:47 +0000 |
commit | 9aa51d8254f41d6b1f1ef2382a74288fb913f815 (patch) | |
tree | bc6da6e6fb6e8ad833a0c2a7376458e40385af78 /mdoc_validate.c | |
parent | 78cd93e807f59c2887a762ae28988154d0c7f7d8 (diff) | |
download | mandoc-9aa51d8254f41d6b1f1ef2382a74288fb913f815.tar.gz |
Prevent validator from puking on ENDBODY `Bl' nodes.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 32dd2339..3e960331 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -543,6 +543,8 @@ pre_bl(PRE_ARGS) if (MDOC_BLOCK != n->type) { assert(n->parent); + if (ENDBODY_NOT != n->end) + return(1); assert(MDOC_BLOCK == n->parent->type); assert(MDOC_Bl == n->parent->tok); assert(LIST__NONE != n->parent->data.Bl.type); |