summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 16:34:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 16:34:16 +0000
commit0f5746c0809693081860530e0589dd6c400eb514 (patch)
treeaad5cb5b1d9974434b092fb60d6f58e05d67ba93 /mdoc_term.c
parent1629539cb88125b5e693c73664d966e47fc47c27 (diff)
downloadmandoc-0f5746c0809693081860530e0589dd6c400eb514.tar.gz
`Nd' is now a BFI (was an ELEM). Noted by joerg@netbsd.org, behaviour ok jmc@openbsd.org, etc.
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