gbranden pushed a commit to branch master
in repository groff.

commit 5510e2a40d4199757f1adaa175ec6a8cb986118c
Author: Alexis Hildebrandt <[email protected]>
AuthorDate: Sat Jan 10 08:52:52 2026 +0000

    [mm]: Fix Savannah #67903.
    
    * contrib/mm/m.tmac (lix@print-ds): If indentation is greater than zero
      at the time we start setting the table of contents, reset it.
    
    Fixes <https://savannah.gnu.org/bugs/?67903>.
---
 contrib/mm/ChangeLog | 7 +++++++
 contrib/mm/m.tmac    | 1 +
 2 files changed, 8 insertions(+)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 83d719f74..75b071a20 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2026-01-10  Alexis Hildebrandt <[email protected]>
+
+       * m.tmac (lix@print-ds): If indentation is greater than zero at
+       the time we start setting the table of contents, reset it.
+
+       Fixes <https://savannah.gnu.org/bugs/?67903>.
+
 2026-01-13  G. Branden Robinson <[email protected]>
 
        Regression-test for Savannah #67903.  Indentation of the caption
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index de12fb760..221ba6c0a 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3172,6 +3172,7 @@ exceeds depth of nested lists (\\n[li*lvl])
 .ds H1txt \\$3
 .ds Tcstatus \\$1
 .if !\\n[Cp] .pg@next-page
+.if \\n[.in]>0 .in
 .\" print LIST OF XXXX
 .\" execute user-defined macros
 .if \\$4<=4 .if d TX\\$2 .TX\\$2

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

Reply via email to