summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 3cc580d2..97508810 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1134,6 +1134,9 @@ termp_ex_pre(DECL_ARGS)
static int
termp_nd_pre(DECL_ARGS)
{
+
+ if (MDOC_BODY != node->type)
+ return(1);
/*
* XXX: signed off by jmc@openbsd.org. This technically
* produces a minus sign after the Nd, which is wrong, but is