=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.22 retrieving revision 1.25 diff -u -p -r1.22 -r1.25 --- mandoc/mdoc_term.c 2009/07/07 11:47:17 1.22 +++ mandoc/mdoc_term.c 2009/07/12 16:34:16 1.25 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.22 2009/07/07 11:47:17 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.25 2009/07/12 16:34:16 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1135,7 +1135,18 @@ 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 + * consistent with the historic OpenBSD tmac file. + */ +#ifdef __OpenBSD__ term_word(p, "\\-"); +#else + term_word(p, "\\(em"); +#endif return(1); }