gbranden pushed a commit to branch master
in repository groff.

commit 8e2f5c8bef9e8631aee81be6dd6002b1fb6f9ce2
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 2 19:18:13 2024 -0500

    [mm]: Make `RL` macro respect `Li` register.
    
    * contrib/mm/m.tmac (RL): Honor `RL` setting for list items' text
      indentation as `AL` does instead of using a hard-coded value of 6 ens.
    
    * contrib/mm/groff_mm.7.man (Description):
    * NEWS: Document this difference.
---
 NEWS                      |  4 ++++
 contrib/mm/ChangeLog      |  7 +++++++
 contrib/mm/groff_mm.7.man | 11 ++++++++++-
 contrib/mm/m.tmac         |  8 ++++----
 4 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/NEWS b/NEWS
index f972674e1..1bdfe4c73 100644
--- a/NEWS
+++ b/NEWS
@@ -326,6 +326,10 @@ o Similarly, the m (mm) macro package's `PIC` macro (a GNU 
extension)
 o The m (mm) macro package's `Li` register now defaults to 5 ens (not 6)
   to align with the `Pi` register default and with DWB 3.3 mm behavior.
 
+o The m (mm) macro package's `Li` register now configures the text
+  indentation of items in `RL` lists (as it long has for `AL` lists)
+  instead of hard-coding a value of 6 ens as DWB 3.3 mm does.
+
 o The m (mm) macro package's `BVL` macro's first argument is now
   optional.  If omitted, the paragraph indentation amount (register
   `Pi`) is used for the list item's text indentation.
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index abf81ee6a..7d6dea9f0 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2024-07-02  G. Branden Robinson <[email protected]>
+
+       * m.tmac (RL): Honor `RL` setting for list items' text
+       indentation as `AL` does instead of using a hard-coded value of
+       6 ens.
+       * groff_mm.7.man (Description): Document this difference.
+
 2024-07-02  G. Branden Robinson <[email protected]>
 
        * m.tmac: Initialize register `Li` to 5, not 6, for better
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index a0bc36c59..81052e2ad 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -145,7 +145,7 @@ either is terminated with
 is intended to be compatible with the
 .I mm
 implementation found in the AT&T Documenter's Workbench (DWB),
-with the following limitations.
+with the following limitations and changes.
 .
 .
 .IP \[bu] 3n
@@ -217,6 +217,15 @@ use an explicit scaling unit to avoid surprises.
 .
 .
 .IP \[bu]
+The
+.B Li
+register configures the text indentation of
+.B RL
+list items;
+DWB used a hard-coded value of 6\~ens.
+.
+.
+.IP \[bu]
 DWB
 .IR mm 's
 .B nP
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 5f2be9836..2613b45bc 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2495,11 +2495,11 @@ exceeds depth of nested lists (\\n[li*lvl])
 .de RL
 .if \\n[D]>2 .tm RL \\$@
 .if \\n[.$]>2 .@warning \\$0: ignoring excess arguments
-.if \\n[.$]<1 .LB      6     0 2 4
-.if \\n[.$]=1 .LB      0\\$1 0 2 4
+.if \\n[.$]<1 .LB      \\n[Li] 0 2 4
+.if \\n[.$]=1 .LB      0\\$1   0 2 4
 .if \\n[.$]=2 \{\
-.      ie '\\$1'' .LB 6     0 2 4 1 0 1
-.      el         .LB 0\\$1 0 2 4 1 0 1
+.      ie '\\$1'' .LB \\n[Li] 0 2 4 1 0 1
+.      el         .LB 0\\$1   0 2 4 1 0 1
 .\}
 ..
 .\" Broken Variable List: as .VL, but always break after the mark.

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

Reply via email to