gbranden pushed a commit to branch master
in repository groff.
commit 0afa651fdd13763cfa04bf8b4bfcc0cc66f8ef96
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 2 11:45:07 2024 -0500
contrib/mm/m.tmac: Trivially refactor `BVL` macro.
* contrib/mm/m.tmac (BVL): Trivially refactor. Rename and retype
`list*ti` string to `li*text-indent` register. Fix internal
documentation; the name of the "module" is "li", not "list".
---
contrib/mm/ChangeLog | 6 ++++++
contrib/mm/m.tmac | 12 ++++++------
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 196d68b09..5cd01a31e 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2024-07-02 G. Branden Robinson <[email protected]>
+
+ * m.tmac (BVL): Trivially refactor. Rename and retype `list*ti`
+ string to `li*text-indent` register. Fix internal
+ documentation; the name of the "module" is "li", not "list".
+
2024-06-30 G. Branden Robinson <[email protected]>
* m.tmac (LB): Don't throw an overlong mark warning when the
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 61ad48a76..bcac0719a 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2315,7 +2315,7 @@ breaking page
.nr par@suppress-indentation 1 \" no indentation after displays
.ev
..
-.\"########### module list ###################
+.\"########### module li ###################
.\" .LI text-indent mark-indent pad type [mark [LI-space [LB-space] ] ]
.\"
.nr li*tind 0
@@ -2504,11 +2504,11 @@ exceeds depth of nested lists (\\n[li*lvl])
.de BVL
.if \\n[D]>2 .tm BVL $*
.if \\n[.$]>3 .@warning \\$0: ignoring excess arguments
-.ie \\n[.$]=0 .ds list*ti \\n[Pi]
-.el .ds list*ti \\$1
-.ie \\n[.$]<3 .LB 0\\*[list*ti] 0\\$2 0 -1
-.el .LB 0\\*[list*ti] 0\\$2 0 -1 \& 0 1
-.rm list*ti
+.ie \\n[.$]<1 .nr li*text-indent \\n[Pi]
+.el .nr li*text-indent \\$1
+.ie \\n[.$]<3 .LB 0\\n[li*text-indent] 0\\$2 0 -1
+.el .LB 0\\n[li*text-indent] 0\\$2 0 -1 \& 0 1
+.rr li*text-indent
..
.\" ####### module tbl #######################################
.\" This module is copied from groff_ms and modified for mm.
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit