From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id a6736db7 for ; Mon, 9 Dec 2019 10:05:31 -0500 (EST) Received: from hekate.asta.kit.edu ([141.3.145.153] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1ieKbI-0004iz-OV; Mon, 09 Dec 2019 16:05:30 +0100 Received: from donnerwolke.asta.kit.edu ([141.3.145.61] helo=donnerwolke.usta.de) by hekate.usta.de with esmtp (Exim 4.92.2) (envelope-from ) id 1ieKbH-0006wi-HQ; Mon, 09 Dec 2019 16:05:27 +0100 Received: from athene.asta.kit.edu ([141.3.145.60] helo=athene.usta.de) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1ieKbH-0004DG-DM; Mon, 09 Dec 2019 16:05:27 +0100 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 79e5f92b; Mon, 9 Dec 2019 16:05:27 +0100 (CET) Date: Mon, 9 Dec 2019 16:05:27 +0100 From: Ingo Schwarze To: "Anthony J. Bentley" Cc: tech@mandoc.bsd.lv Subject: Re: Qq should print straight quotes in -Thtml Message-ID: <20191209150527.GJ42292@athene.usta.de> References: <47670-1575889959.675959@0_Kr.Y4xw.xcq1> X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47670-1575889959.675959@0_Kr.Y4xw.xcq1> User-Agent: Mutt/1.12.2 (2019-09-21) Hi Anthony, Anthony J. Bentley wrote on Mon, Dec 09, 2019 at 04:12:39AM -0700: > According to mdoc(7): > > Qq, Qo, Qc enclose in typewriter double quotes: "text" > > Indeed, mdoc_term.c intentionally uses straight quotes: > > case MDOC_Qo: > case MDOC_Qq: > term_word(p, "\""); > break; > > mdoc_html.c uses curly quotes, but it should match mdoc_term.c. Thanks for catching this bug! > ok? Yes, please commit. Ingo > Index: mdoc_html.c > =================================================================== > RCS file: /cvs/src/usr.bin/mandoc/mdoc_html.c,v > retrieving revision 1.206 > diff -u -p -r1.206 mdoc_html.c > --- mdoc_html.c 15 Sep 2019 00:08:46 -0000 1.206 > +++ mdoc_html.c 8 Dec 2019 19:47:24 -0000 > @@ -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,11 +1777,13 @@ 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: -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv