From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id d64a5646 for ; Mon, 9 Dec 2019 06:12:43 -0500 (EST) Received: by mail-pg1-f178.google.com with SMTP id r11so6973969pgf.1 for ; Mon, 09 Dec 2019 03:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anjbe-name.20150623.gappssmtp.com; s=20150623; h=from:to:subject:mime-version:content-id:date:message-id; bh=RwW0fyR22wmnAyptbYxyVtZnbdphMEMFPhuCC+JwYpI=; b=UBT+VVgQdqRzhyKlBoCpvZpbWYlw1Au/6920KdyT3RGsFltVVF1i7VQ2OCnDgtQN1n emN/14tOZGzI5xnMGpVUW7FsKjU1n5pQMiZ4QgibTuyvwLmSzCXx19aYAlrhwEabofvY lGKlRk2cUQsHsuXJzopTQUxJnGlhY/o7BzEmEMebbIHBq6X8guP8xXI74eXmvYZBCstv K0E9W+TkOk8ZpJwYCcRPgt+Ci/SZ6Us8OtDShlwz78ZpjPxeoKyw+KidGXnAHns6P999 SVSXBGWRl/4wZ4BlMWwE7YsBa9yOhjli6hBdmTQBkhoPSzWwr0PskwRZE11WOUGWGjEg a5NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:mime-version:content-id:date :message-id; bh=RwW0fyR22wmnAyptbYxyVtZnbdphMEMFPhuCC+JwYpI=; b=nOYU784Hz9eRuZG0RZH00U9UmXUUxgJy84TNkmwx78/Vk57x3s+NyEfnazg9O8zEbW dQx+pl0w3sEDMJGTeo/y2IVZ/e4wRTomdrg0XbMvfbKirRNXLHTcUq33CdoA0MAqD193 RTqdQNiNa+sSdLNv0l2ReZWe03FvSN/f7gBJhPPnXJd/ef4qUsqmXVXaIPh3tNvki2Fq aFfnNPSdF5VijC3Xlt+R2a+ttfbazi6CouXvRzRevxJiX4H31LlxTBk0jcrZOQLCR9cx /SP6MNhcSV+WFkGVyQRhlJKSi6ya3skIo0cZhfKWRCilssIUXWwbeum0UxMCmXoKYwOA HzOw== X-Gm-Message-State: APjAAAXJ9ZXA25N/6yppmNXSkiL0sEOgmuCx1h8XLUlltJfUuiFPr+LY gQ4ndITedI0Txo4yY02diWBxypSlE50= X-Google-Smtp-Source: APXvYqw0mo+1dJ1pq9fWvmd7IoIb2tqZ+iXbbDNzT2nLLSkDIU2oaYdweeWcTjUgNZgzF3lEGWBthg== X-Received: by 2002:a63:215d:: with SMTP id s29mr16593331pgm.200.1575889961748; Mon, 09 Dec 2019 03:12:41 -0800 (PST) Received: from desktop.ajb.soy (174-28-243-81.albq.qwest.net. [174.28.243.81]) by smtp.gmail.com with ESMTPSA id y17sm25875763pfn.86.2019.12.09.03.12.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Dec 2019 03:12:41 -0800 (PST) Received: from desktop.ajb.soy (localhost [127.0.0.1]) by desktop.ajb.soy (OpenSMTPD) with ESMTP id b5ac8c39 for ; Mon, 9 Dec 2019 04:12:39 -0700 (MST) From: "Anthony J. Bentley" To: tech@mandoc.bsd.lv Subject: Qq should print straight quotes in -Thtml X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <93989.1575889959.1@desktop.ajb.soy> Date: Mon, 09 Dec 2019 04:12:39 -0700 Message-ID: <47670-1575889959.675959@0_Kr.Y4xw.xcq1> Hi, 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. ok? 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