gbranden pushed a commit to branch master
in repository groff.

commit efbe454f0ddc2551741238f2f61a0a2bd67012d4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 2 20:08:10 2024 -0500

    [mm]: Use less padding in `AL` and `RL`.
    
    * contrib/mm/m.tmac (AL, RL): Reduce "pad" argument to `LB` call from 2
      to 1.  This keeps marks in `AL` list items from oversetting even when
      prefixed (with intra-mark padding), if the enumerator and prefix are
      only one character in nroff mode (and similarly thin in troff mode).
      `RL` oversets under the same circumstances (because two brackets "["
      and "]" are wider than a dot ".")  This change however makes the
      macros more consistent with each other, and `RL` more consistent with
      DWB 3.3 mm, whose manual doesn't document the macros' behavior in this
      much detail; I thus regard the alteration as cosmetic.
---
 contrib/mm/ChangeLog | 13 +++++++++++++
 contrib/mm/m.tmac    | 16 ++++++++--------
 2 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 7d6dea9f0..be5594734 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,16 @@
+2024-07-02  G. Branden Robinson <[email protected]>
+
+       * m.tmac (AL, RL): Reduce "pad" argument to `LB` call from 2
+       to 1.  This keeps marks in `AL` list items from oversetting even
+       when prefixed (with intra-mark padding), if the enumerator and
+       prefix are only one character in nroff mode (and similarly thin
+       in troff mode).  `RL` oversets under the same circumstances
+       {because two brackets "[" and "]" are wider than a dot "."}
+       This change however makes the macros more consistent with each
+       other, and `RL` more consistent with DWB 3.3 mm, whose manual
+       doesn't document the macros' behavior in this much detail; I
+       thus regard the alteration as cosmetic.
+
 2024-07-02  G. Branden Robinson <[email protected]>
 
        * m.tmac (RL): Honor `RL` setting for list items' text
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 2613b45bc..c63d92f47 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2443,12 +2443,12 @@ exceeds depth of nested lists (\\n[li*lvl])
 .de AL
 .if \\n[.$]>3 .@warning \\$0: ignoring excess arguments
 .if \\n[D]>2 .tm AL \\$@
-.ie \\n[.$]<=1 .LB              \\n[Li] 0 2 1 "\\$1"
+.ie \\n[.$]<=1 .LB              \\n[Li] 0 1 1 "\\$1"
 .el \{\
-.      ie \\n[.$]=2 .LB        0\\$2   0 2 1 "\\$1"
+.      ie \\n[.$]=2 .LB        0\\$2   0 1 1 "\\$1"
 .      el \{\
-.              ie !'\\$2'' .LB \\$2    0 2 1 "\\$1" 0 1
-.              el          .LB \\n[Li] 0 2 1 "\\$1" 0 1
+.              ie !'\\$2'' .LB \\$2    0 1 1 "\\$1" 0 1
+.              el          .LB \\n[Li] 0 1 1 "\\$1" 0 1
 .      \}
 .\}
 ..
@@ -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      \\n[Li] 0 2 4
-.if \\n[.$]=1 .LB      0\\$1   0 2 4
+.if \\n[.$]<1 .LB      \\n[Li] 0 1 4
+.if \\n[.$]=1 .LB      0\\$1   0 1 4
 .if \\n[.$]=2 \{\
-.      ie '\\$1'' .LB \\n[Li] 0 2 4 1 0 1
-.      el         .LB 0\\$1   0 2 4 1 0 1
+.      ie '\\$1'' .LB \\n[Li] 0 1 4 1 0 1
+.      el         .LB 0\\$1   0 1 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