From 2302db180178413966db5db96a8d327e78b53afe Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 1 Jul 2010 14:34:03 +0000 Subject: More reality-checks for the p->end type. --- mdoc_html.c | 4 ++-- mdoc_term.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mdoc_html.c b/mdoc_html.c index a9259498..531b6153 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -437,7 +437,7 @@ print_mdoc_node(MDOC_ARGS) print_text(h, n->string); return; default: - if (mdocs[n->tok].pre && !n->end) + if (mdocs[n->tok].pre && ENDBODY_NOT == n->end) child = (*mdocs[n->tok].pre)(m, n, h); break; } @@ -453,7 +453,7 @@ print_mdoc_node(MDOC_ARGS) mdoc_root_post(m, n, h); break; default: - if (mdocs[n->tok].post && !n->end) + if (mdocs[n->tok].post && ENDBODY_NOT == n->end) (*mdocs[n->tok].post)(m, n, h); break; } diff --git a/mdoc_term.c b/mdoc_term.c index 3ccf9de7..633394d1 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -327,7 +327,7 @@ print_mdoc_node(DECL_ARGS) if (MDOC_TEXT == n->type) term_word(p, n->string); - else if (termacts[n->tok].pre && !n->end) + else if (termacts[n->tok].pre && ENDBODY_NOT == n->end) chld = (*termacts[n->tok].pre)(p, &npair, m, n); if (chld && n->child) -- cgit