[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62044] [man] using mandoc interpolates extra space after UE, ME ar
From: |
G. Branden Robinson |
Subject: |
[bug #62044] [man] using mandoc interpolates extra space after UE, ME arguments |
Date: |
Sat, 16 Apr 2022 05:05:19 -0400 (EDT) |
Update of bug #62044 (project groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.23.0
Summary: [mandoc] combined with 'pdf' device can throw off
line adjustment => [man] using mandoc interpolates extra space after UE, ME
arguments
_______________________________________________________
Follow-up Comment #5:
commit 0e84b1acbe52ebf055130a5af47bdf8092f8e530
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Thu Apr 14 12:49:55 2022 +1000
[man]: Fix extra space when `ME`, `UE` + -mandoc.
[man]: Fix extraneous space when `ME` or `UE` given extraneous arguments
and mandoc wrapper is used.
* tmac/an-ext.tmac (UE, ME): Double backslashes in macro definitions
when interpolating `.$` register (just like we tell everyone else to
do). This one was interesting to track down. When using just `-man`,
the problem never manifested; only with `-mandoc`. The difference is
that with the former, the `.$` register is initialized to zero; with
the latter, because `TH` is aliased to another macro (then unaliased),
`.$` has the argument count to the `TH` macro, not to the macros
actually being called. This caused the wrong branch of a conditional
to be taken and put an extra space node on the output. And all this
to interpolate arguments we don't even claim to support. :|
Fixes <https://savannah.gnu.org/bugs/?62044>.
Also fix nearby indentation error.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62044>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/