From 6aa434a613ae90a05243c999174fdf0231c54b3a 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 | 6 +++--- mdoc_term.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mdoc_html.c b/mdoc_html.c index 398152d6..1b521c6a 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.88 2010/06/29 19:20:38 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.89 2010/07/01 14:34:03 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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 6995bba1..02077563 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.162 2010/06/29 19:20:38 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.163 2010/07/01 14:34:03 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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 v1.2.3-56-ge451