gbranden pushed a commit to branch master
in repository groff.

commit c1e8baeec9304a3d92d36fa52077216c3732fc79
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jul 13 11:42:42 2026 -0500

    [man]: Fix Savannah #68309. (2/2)
    
    * tmac/an.tmac (EX, EE): When formatting for HTML, begin and end,
      respectively, a `span` element employing the new `code-display` class
      set up in the document header by grohtml(1).
    
    Fixes <https://savannah.gnu.org/bugs/?68309>.  Thanks to Colin Watson
    and Stephen Gildea for the reports and to them and Ingo Schwarze for
    discussion on the groff list.
    
    ANNOUNCE: Acknowledge Colin, Ingo, and Stephen for their assistance with
    my all-thumbs dexterity with HTML and CSS.
---
 ANNOUNCE     |  3 +++
 ChangeLog    | 11 +++++++++++
 tmac/an.tmac |  4 ++++
 3 files changed, 18 insertions(+)

diff --git a/ANNOUNCE b/ANNOUNCE
index 428071a5a..532e65880 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -213,10 +213,12 @@ Avi Halachmi
 Benno Schulenberg
 Bob Friesenhahn
 Bruno Haible
+Colin Watson
 Dave Kemper
 Deri James
 Dmytro Bagrii
 Hilmar Preuße
+Ingo Schwarze
 Johannes Altmanninger
 John Gardner
 Karl Berry
@@ -229,4 +231,5 @@ Ross Burton
 Russ Allbery
 Santiago Vila
 Stefan Möding
+Stephen Gildea
 Zack Weinberg
diff --git a/ChangeLog b/ChangeLog
index 499322a0e..340efd966 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2026-07-13  G. Branden Robinson <[email protected]>
+
+       * tmac/an.tmac (EX, EE): When formatting for HTML, begin and
+       end, respectively, a `span` element employing the new
+       `code-display` class set up in the document header by
+       grohtml(1).
+
+       Fixes <https://savannah.gnu.org/bugs/?68309>.  Thanks to Colin
+       Watson and Stephen Gildea for the reports and to them and Ingo
+       Schwarze for discussion on the groff list.
+
 2026-07-13  G. Branden Robinson <[email protected]>
 
        * src/devices/grohtml/post-html.cpp
diff --git a/tmac/an.tmac b/tmac/an.tmac
index d9897fcc3..02dbade60 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1205,6 +1205,8 @@ contains unsupported escape sequence
 .  el                    .fam \\*[an*example-family]
 .  \}
 .  ft R
+.  if '\*[.T]'html' \
+.    nop \X'html:<span class="code-display">'
 .  nr an*is-in-example 1
 ..
 .
@@ -1215,6 +1217,8 @@ contains unsupported escape sequence
 .    an*style-warn ignoring .\\$0 while not in example
 .    return
 .  \}
+.  if '\*[.T]'html' \
+.    nop \X'html:</span>'
 .  \" Undo the remappings from `EX`.
 .  if \\n[an*unmap-fonts] \{\
 .    ftr R

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to