summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2009-07-13 00:26:24 +0000
committerschwarze <schwarze@openbsd.org>2009-07-13 00:26:24 +0000
commitc6bbbb1efcbaff4606781b5dfc9ec2c247a4a25a (patch)
treef5bdb2f4801c651ce7a6c648c8d101170f6bf255
parentsync to 1.7.24: support \(hy for groff compatibility (diff)
downloadwireguard-openbsd-c6bbbb1efcbaff4606781b5dfc9ec2c247a4a25a.tar.xz
wireguard-openbsd-c6bbbb1efcbaff4606781b5dfc9ec2c247a4a25a.zip
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@
-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);
}