summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 16:55:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 16:55:11 +0000
commitaaad5790c59c6769d67fdc66a6fca95266948356 (patch)
tree5c0a8a54d1bdec133202ea48774d0030d93d5732 /mdoc_term.c
parentaed89006c420eebb4a2a851d4c65a2d20c131521 (diff)
downloadmandoc-aaad5790c59c6769d67fdc66a6fca95266948356.tar.gz
GNU/Linux also uses \- for Nd (ew).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index d73c676c..a1b09ba2 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -908,7 +908,7 @@ termp_it_pre(DECL_ARGS)
/* FALLTHROUGH */
case (MDOC_Hyphen):
p->flags |= TERMP_BOLD;
- term_word(p, "\\-");
+ term_word(p, "\\(hy");
break;
case (MDOC_Enum):
(pair->ppair->ppair->count)++;
@@ -1137,7 +1137,7 @@ termp_nd_pre(DECL_ARGS)
* produces a minus sign after the Nd, which is wrong, but is
* consistent with the historic OpenBSD tmac file.
*/
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__linux__)
term_word(p, "\\-");
#else
term_word(p, "\\(em");