diff options
author | 2019-12-10 10:49:04 +0000 | |
---|---|---|
committer | 2019-12-10 10:49:04 +0000 | |
commit | ac01d98ff55bc59c9c832169d23a7013a1e84516 (patch) | |
tree | 18d2957548a1aa1a9134fcd0aaa31ac881ed570e /usr.bin/mandoc/mdoc_html.c | |
parent | Plug two mem leaks in udp_receive() and zap unneeded allocations; (diff) | |
download | wireguard-openbsd-ac01d98ff55bc59c9c832169d23a7013a1e84516.tar.xz wireguard-openbsd-ac01d98ff55bc59c9c832169d23a7013a1e84516.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.
ok schwarze@
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 9f7182dc656..4c1b51e86b7 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.206 2019/09/15 00:08:46 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.207 2019/12/10 10:49:04 bentley Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014-2019 Ingo Schwarze <schwarze@openbsd.org> @@ -1717,9 +1717,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: @@ -1775,12 +1777,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, ")"); |