Follow-up Comment #4, bug #67916 (group groff):

Happy for you to push a test.

I am seeing a FAIL with current git:-

FAIL: src/roff/groff/tests/lj4-device-smoke-test.sh
===================================================

0000060   1   0   V esc   *   p   9   1   6   x   2   0   0   Y   H   e
0000100   l   l   o esc   *   p   -   9   X   , esc   *   p   +   4   9
0000120   X   w esc   *   p   -   9   X   o   r   l   d   !  ff esc   E
FAIL src/roff/groff/tests/lj4-device-smoke-test.sh (exit status: 1)

Also I have been seeing problems with groff-man-pages.pdf. It goes wrong doing
the groff_mdoc(7) page and then corrects itself at groff_mm_se(7) (because it
does a reload for swedish). Bisect gives this as the first "bad":-

commit e0b89348a01b06fa45efde626f5254111e90ad49
Author: G. Branden Robinson <[email protected]>
Date:   Thu Jul 17 12:59:11 2025 -0500

    [mdoc]: Fix missing brace escape sequence.
    
    * tmac/mdoc/doc-common (Sh): Do it.

diff --git a/ChangeLog b/ChangeLog
index 35633ecf9..fb6b8bf49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2025-07-17  G. Branden Robinson <[email protected]>
+
+       * tmac/mdoc/doc-common (Sh): Fix missing brace escape sequence.
+
 2025-07-17  G. Branden Robinson <[email protected]>
 
        * tmac/mdoc/doc-common (Sh): Stop disabling adjustment in troff
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index 5b8a1e4b6..314083129 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -1480,7 +1480,7 @@
 .    ss (\n[.ss] * 5 / 3) (\n[.sss] * 5 / 3)
 .  \}
 .
-.  if \n[doc-remap-I-style-in-headings] \
+.  if \n[doc-remap-I-style-in-headings] \{\
 .    ftr \*[doc-heading-family]I \*[doc-heading-family]BI
 .
 .    nr doc-arg-ptr +1

reversing this change fixes the problem, but makes another problem visible. In
some circumstances bolding (on groff_mdoc) fails and is replaced by a single
"B".

The closing brace on current line 1500 is intended to close the .el on line
1413.

I have not found out where the killer bees are coming from!!


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to