summaryrefslogtreecommitdiffstatshomepage
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
commitca1befec9b8a9adb6f3c1f32ea9689c61a7fabea (patch)
treead14d3dba76d7788d4c0c82db99b984832599cd0 /mdoc_term.c
parentf471b1504f4ad0c9bbee80190940301c0ec95558 (diff)
downloadmandoc-ca1befec9b8a9adb6f3c1f32ea9689c61a7fabea.tar.gz
mandoc-ca1befec9b8a9adb6f3c1f32ea9689c61a7fabea.tar.zst
mandoc-ca1befec9b8a9adb6f3c1f32ea9689c61a7fabea.zip
GNU/Linux also uses \- for Nd (ew).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 62f55b4d..6edaf534 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.26 2009/07/12 16:52:41 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.27 2009/07/12 16:55:11 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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");