gbranden pushed a commit to branch master
in repository groff.

commit d6624fdb26aaac0711a20e356ab99ef0899685a3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 11 01:40:09 2026 -0500

    [grog]: Account for new LS and LE man(7) macros.
    
    * src/utils/grog/grog.pl (interpret_line): Drop `LE` from list of
      mm(7)-exclusive macros.  Drop `LS` from list of mom(7)-exclusive
      macros.
    
    See <https://savannah.gnu.org/bugs/?68335>.
    
    Before:
    
    $ ./build/grog ./build/man/groff.7
    groff -t -mom ./build/man/groff.7
    
    After:
    
    $ ./build/grog ./build/man/groff.7
    groff -t -man ./build/man/groff.7
---
 ChangeLog              | 9 +++++++++
 src/utils/grog/grog.pl | 9 +++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4ac9ae7e8..d87016459 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-05-10  G. Branden Robinson <[email protected]>
+
+       * src/utils/grog/grog.pl: Account for new `LS` and `LE` man(7)
+       macros.
+       (interpret_line): Drop `LE` from list of mm(7)-exclusive macros.
+       Drop `LS` from list of mom(7)-exclusive macros.
+
+       See <https://savannah.gnu.org/bugs/?68335>.
+
 2026-05-11  G. Branden Robinson <[email protected]>
 
        [man]: Unit-test new `LS` and `LE` macros.
diff --git a/src/utils/grog/grog.pl b/src/utils/grog/grog.pl
index fe277235a..075c03201 100644
--- a/src/utils/grog/grog.pl
+++ b/src/utils/grog/grog.pl
@@ -405,7 +405,7 @@ sub interpret_line {
                   INITI|IND|INDP|
                   INITR|SETR|GETHN|GETPN|
                   ISODATE|
-                  LB|LE
+                  LB|
                   MULB|MULN|MULE|
                   LO|
                   LT|
@@ -413,8 +413,9 @@ sub interpret_line {
                   PH|
                   SA
                  )$/x) {
-    # `LI` is unique to mm among full-service macro packages, but
-    # www.tmac muddies the waters, so omit it.
+    # LE is also used by man (since groff 1.25).
+    # LI is unique to mm among full-service macro packages, but
+    #   www.tmac muddies the waters, so omit it.
     # P and MT are also used by man.
     # COVER and SP are also used by mom.
     # 1C, 2C, AE, AU, B1, B2, DE, DS, MC, ND, TL, and RP are also used
@@ -451,7 +452,6 @@ sub interpret_line {
                   FT|
                   LEFT|
                   LL|
-                  LS|
                   NEWPAGE|
                   NO_TOC_ENTRY|
                   PAGENUMBER|
@@ -466,6 +466,7 @@ sub interpret_line {
                   TOC|
                   T_MARGIN|
                  )$/x) {
+    # LS is also used by man (since groff 1.25).
     # PP is also used by man.
     # SP is also used by mm.
     push_main_package('om');

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

Reply via email to