diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-12-11 18:44:05 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-12-11 18:44:05 +0000 |
commit | 016c70be27f8384ff2027c53688bdadd43909ca7 (patch) | |
tree | 0837489449d54a27c981e44f50811c558e6ddabe | |
parent | 664ffe62fdc6bd5fb82bdbf90a52c2f3cfebcac9 (diff) | |
download | mandoc-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@.
-rw-r--r-- | mdoc_html.c | 10 |
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, ")"); |