aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-06-02 18:16:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-06-02 18:16:57 +0000
commitc8339ef46751f358c1b8dc853ad768f5c8c9e4e0 (patch)
treed6a5259e0e7df1f9456f7fa71fef8dc946286fff /mdoc_term.c
parente8e61026ee843cd18956b5932414c606fa85390c (diff)
downloadmandoc-c8339ef46751f358c1b8dc853ad768f5c8c9e4e0.tar.gz
mandoc-c8339ef46751f358c1b8dc853ad768f5c8c9e4e0.tar.zst
mandoc-c8339ef46751f358c1b8dc853ad768f5c8c9e4e0.zip
Let .Do .Dq .Ql .So .Sq generate the correct roff(7) character escape
sequences such that output modes like -Tutf8 have a chance to select nice glyphs. This doesn't change anything for -Tascii, and, for now, it doesn't affect -Tps and -Tpdf either. OK matthew@ bentley@; like the idea tedu@; no opinion jmc@.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 8b059067..99c59539 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.248 2013/05/29 16:11:40 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.249 2013/06/02 18:16:57 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012 Ingo Schwarze <schwarze@openbsd.org>
@@ -1925,7 +1925,7 @@ termp_quote_pre(DECL_ARGS)
case (MDOC_Do):
/* FALLTHROUGH */
case (MDOC_Dq):
- term_word(p, "``");
+ term_word(p, "\\(lq");
break;
case (MDOC_Eo):
break;
@@ -1946,7 +1946,7 @@ termp_quote_pre(DECL_ARGS)
case (MDOC_So):
/* FALLTHROUGH */
case (MDOC_Sq):
- term_word(p, "`");
+ term_word(p, "\\(oq");
break;
default:
abort();
@@ -1991,7 +1991,7 @@ termp_quote_post(DECL_ARGS)
case (MDOC_Do):
/* FALLTHROUGH */
case (MDOC_Dq):
- term_word(p, "''");
+ term_word(p, "\\(rq");
break;
case (MDOC_Eo):
break;
@@ -2012,7 +2012,7 @@ termp_quote_post(DECL_ARGS)
case (MDOC_So):
/* FALLTHROUGH */
case (MDOC_Sq):
- term_word(p, "'");
+ term_word(p, "\\(cq");
break;
default:
abort();