groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 65/126: [mm]: Use `hd@mark-trimmed` in index entries.


From: G. Branden Robinson
Subject: [groff] 65/126: [mm]: Use `hd@mark-trimmed` in index entries.
Date: Wed, 5 Jul 2023 17:02:57 -0400 (EDT)

gbranden pushed a commit to branch branden-2023-07-05
in repository groff.

commit 8e989f85810da8f727d431c6c63c0dad8959335b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Jul 4 11:19:58 2023 -0500

    [mm]: Use `hd@mark-trimmed` in index entries.
    
    * contrib/mm/m.tmac (IND): Use `hd@mark-trimmed` instead of `hd*mark` in
      index entries, just as is done with references; we don't want trailing
      spaces in it.
---
 contrib/mm/ChangeLog | 6 ++++++
 contrib/mm/m.tmac    | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index b3423f998..64af14fb3 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2023-07-04 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * m.tmac (IND): Use `hd@mark-trimmed` instead of `hd*mark` in
+       index entries, just as is done with references; we don't want
+       trailing spaces in it.
+
 2023-05-18  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        Improve input validation of `INITI`, `IND` macros.
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 9b9debae2..5f066cfd6 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3373,8 +3373,8 @@ exceeds depth of nested lists (\\n[li*lvl])
 .      as ind*line \t\\$1
 .\}
 .if '\\*[ind*type]'N' .ds ind*ref \\n[%]
-.if '\\*[ind*type]'H' .ds ind*ref \\*[hd*mark]
-.if '\\*[ind*type]'B' .ds ind*ref \\*[hd*mark]\t\\n[%]
+.if '\\*[ind*type]'H' .ds ind*ref \\*[hd@mark-trimmed]
+.if '\\*[ind*type]'B' .ds ind*ref \\*[hd@mark-trimmed]\t\\n[%]
 .as ind*line \\*[ind*ref]
 .if \\n[Ref] .tm .\\\\" IND \\*[ind*line]
 ..



reply via email to

[Prev in Thread] Current Thread [Next in Thread]