URL: <https://savannah.gnu.org/bugs/?61276>
Summary: .Ql macro in troff-mode does not put text in single quotes Project: GNU troff Submitted by: None Submitted on: Mon 04 Oct 2021 11:27:28 AM UTC Category: Macro - mdoc Severity: 3 - Normal Item Group: Incorrect behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: A simple test case: .Dd May 1, 2021 .Dt FOO 1 .Os .Sh DESCRIPTION .Ql f , .Ql fo , .Ql foo , .Ql foo bar mandoc (1.14.5/6) renders it as: ‘f’, ‘fo’, ‘foo’, ‘foo bar’ groff-devel/1.22.4 nroff also renders it as: ‘f’, ‘fo’, ‘foo’, ‘foo bar’ but groff-ditroff/PDF renders it like: ‘f’, ‘fo’, foo, foo bar I've attached a patch that simply deletes this code-path in mdoc/doc-ditroff, and the resultant output is as expected. I'm unsure if this is due to some limitation in groff, but as someone who uses switches between mandoc (for linting) and groff (for pretty pdfs), it can get slightly annoying (but only slightly ;)). _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 04 Oct 2021 11:27:28 AM UTC Name: groff.patch Size: 2KiB By: None <http://savannah.gnu.org/bugs/download.php?file_id=52019> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61276> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/