bug-groff
[Top][All Lists]
Advanced

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

[bug #65101] mdoc nroff output for Nm broken since 1.23


From: anonymous
Subject: [bug #65101] mdoc nroff output for Nm broken since 1.23
Date: Sun, 31 Dec 2023 17:26:14 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?65101>

                 Summary: mdoc nroff output for Nm broken since 1.23
                   Group: GNU roff
               Submitter: None
               Submitted: Sun 31 Dec 2023 10:26:12 PM 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


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 31 Dec 2023 10:26:12 PM UTC By: Anonymous
Downstream bug: https://bugs.debian.org/1059536, part 1.

The first invocation of Nm in NAME is broken: it correctly saves the first
argument to the string register, but it draws the argument in R instead of B.
This is in contrast to every other use of Nm (and, thus, every other reference
to the object the Nms refer to).
This is baffling and confusing; please revert this (a quick peep at
https://sources.debian.org/src/groff/1.23.0-3/tmac/doc.tmac/#L1166 shows that
this is a seemignly-intended change).

This is much harder to correct (I'd say impossible) for a casual user, though
I've added this to my mdoc.local (it's not pretty nor is it nice but it does
work against 1.23.0-3):

.\" Handle '.Nm ...' in "Name" section: use the Nm font! It doesn't anymore in
1.23.
.als Nm_old Nm
.rm Nm
.de Nm
.if \\n[doc-in-name-section] \{\
.  if "\\*[doc-topic-name]"" \
.    ds doc-topic-name "\\$1\"
.  nr doc-in-name-section 0
.\}
.Nm_old \\$@
..









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65101>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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