aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-12-11 18:44:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-12-11 18:44:05 +0000
commita8c112cc63c7c698e3225ae6b16d2a27f0ac1055 (patch)
tree94f8e2698c7ca869be93e2fe7a943af6f355cef5 /mdoc_html.c
parent89d32b9120ed7de9fe5283abc537b21bd0b8bde9 (diff)
downloadmandoc-a8c112cc63c7c698e3225ae6b16d2a27f0ac1055.tar.gz
mandoc-a8c112cc63c7c698e3225ae6b16d2a27f0ac1055.tar.zst
mandoc-a8c112cc63c7c698e3225ae6b16d2a27f0ac1055.zip
In HTML, display straight quotes, not curly quotes, for Qq/Qo/Qc macros.
This is the intended behavior and already the case in terminal output. Incorrect output noticed by Eldred Habert. Patch from bentley@.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 1d2709ec..3d1e3ecf 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.331 2019/09/15 00:08:55 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.332 2019/12/11 18:44:05 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -1719,9 +1719,11 @@ mdoc_quote_pre(MDOC_ARGS)
break;
case MDOC_Do:
case MDOC_Dq:
+ print_text(h, "\\(lq");
+ break;
case MDOC_Qo:
case MDOC_Qq:
- print_text(h, "\\(lq");
+ print_text(h, "\"");
break;
case MDOC_Po:
case MDOC_Pq:
@@ -1777,12 +1779,14 @@ mdoc_quote_post(MDOC_ARGS)
else
print_text(h, n->norm->Es->child->next->string);
break;
- case MDOC_Qo:
- case MDOC_Qq:
case MDOC_Do:
case MDOC_Dq:
print_text(h, "\\(rq");
break;
+ case MDOC_Qo:
+ case MDOC_Qq:
+ print_text(h, "\"");
+ break;
case MDOC_Po:
case MDOC_Pq:
print_text(h, ")");