summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 38538cdb..398152d6 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.87 2010/06/27 16:18:13 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.88 2010/06/29 19:20:38 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -437,7 +437,7 @@ print_mdoc_node(MDOC_ARGS)
print_text(h, n->string);
return;
default:
- if (mdocs[n->tok].pre)
+ if (mdocs[n->tok].pre && !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)
+ if (mdocs[n->tok].post && !n->end)
(*mdocs[n->tok].post)(m, n, h);
break;
}