bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61276] .Ql macro in troff-mode does not put text in single quotes


From: anonymous
Subject: [bug #61276] .Ql macro in troff-mode does not put text in single quotes
Date: Mon, 4 Oct 2021 07:27:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]