summaryrefslogtreecommitdiffstatshomepage
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
commit7c44ccf312af62ad9f897278c8b76f0ec53ab316 (patch)
tree4e558a4717ba5fe221ef947bc1c49941dac0cfd8 /mdoc_term.c
parent195f31ab11fefb81ce789a6caa0124ac52ec3789 (diff)
downloadmandoc-7c44ccf312af62ad9f897278c8b76f0ec53ab316.tar.gz
mandoc-7c44ccf312af62ad9f897278c8b76f0ec53ab316.tar.zst
mandoc-7c44ccf312af62ad9f897278c8b76f0ec53ab316.zip
`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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 205a44d8..a37042af 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.24 2009/07/12 08:49:50 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.25 2009/07/12 16:34:16 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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