summaryrefslogtreecommitdiffstats
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
commit016c70be27f8384ff2027c53688bdadd43909ca7 (patch)
tree0837489449d54a27c981e44f50811c558e6ddabe /mdoc_html.c
parent664ffe62fdc6bd5fb82bdbf90a52c2f3cfebcac9 (diff)
downloadmandoc-016c70be27f8384ff2027c53688bdadd43909ca7.tar.gz
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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 7e50ce45..3dfc0a52 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -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, ")");