summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-13 00:26:25 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-13 00:26:25 +0000
commitd69047d90aaf9e86abc0fbe9d7f0b23b0c35a713 (patch)
treefc6f34a550a0001feba373145b13d9051b8c3a32 /usr.bin/mandoc
parente066f1f4d1ab5bc78c0b3b47e9a75a563308592c (diff)
sync to 1.7.24: In the .Nd line, \(em is typographically more sound than \- ,
so that's what e.g. NetBSD and FreeBSD do. However, for *now*, we want to stick with the exact behaviour of the in-tree groff in OpenBSD. ok jmc@
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/mdoc_term.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index bf848c937f2..45b583f0a81 100644
--- a/usr.bin/mandoc/mdoc_term.c
+++ b/usr.bin/mandoc/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.23 2009/07/12 23:19:48 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.24 2009/07/13 00:26:24 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1129,8 +1129,16 @@ termp_ex_pre(DECL_ARGS)
static int
termp_nd_pre(DECL_ARGS)
{
-
+ /*
+ * 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);
}