From 016c70be27f8384ff2027c53688bdadd43909ca7 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 11 Dec 2019 18:44:05 +0000 Subject: 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@. --- mdoc_html.c | 10 +++++++--- 1 file 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, ")"); -- cgit