gbranden pushed a commit to branch master
in repository groff.
commit 037ad80a41e660a9c6a5e039a7216e5aa1d12d88
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Apr 27 16:09:36 2026 -0500
[mm]: Improve header/footer debugging output.
* m.tmac (pg@header, pg@print-footer): Revise debugging output to be
clear about the contents of the several possible headers and footers
this package supports.
---
contrib/mm/ChangeLog | 6 ++++++
contrib/mm/m.tmac | 20 +++++++++++++-------
2 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 3b0977c46..8bb6dfde1 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-27 G. Branden Robinson <[email protected]>
+
+ * m.tmac (pg@header, pg@print-footer): Revise debugging output
+ to be clear about the contents of the several possible headers
+ and footers this package supports.
+
2026-03-31 G. Branden Robinson <[email protected]>
* m.tmac (IA, WA): Stop disabling the escape character.
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index ea0053133..eb6f9ae49 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -1541,18 +1541,21 @@ numeric; got '\\$1'
. ie (\\n[P]=1)&((\\n[N]=1):(\\n[N]=2)) .sp
. el \{\
. if \\n[D]>=3 \
-. tm Header "\\*[pg*header]"
+. tm primary header: \
+"\\*[pg*header]"
. tl \\*[pg*header]
. \}
. af P \\*[hd*format]
. ie o \{\
. if \\n[D]>=3 \
-. tm Header "\\*[pg*odd-header]"
+. tm secondary odd-page header: \
+"\\*[pg*odd-header]"
. tl \\*[pg*odd-header]
. \}
. el \{\
. if \\n[D]>=3 \
-. tm Header "\\*[pg*even-header]"
+. tm secondary even-page header: \
+"\\*[pg*even-header]"
. tl \\*[pg*even-header]
. \}
' sp 2
@@ -1633,21 +1636,24 @@ numeric; got '\\$1'
.\}
.el \{\
. ie o \{\
-. if \\n[D]>=3 .tm Footer "\\*[pg*odd-footer]"
+. if \\n[D]>=3 .tm secondary odd-page footer: \
+"\\*[pg*odd-footer]"
. tl \\*[pg*odd-footer]
. \}
. el \{\
-. if \\n[D]>=3 .tm Footer "\\*[pg*even-footer]"
+. if \\n[D]>=3 .tm secondary even-page footer: \
+"\\*[pg*even-footer]"
. tl \\*[pg*even-footer]
. \}
. ds hd*format \\g[P]
. af P 0
. ie (\\n[P]=1)&(\\n[N]=1) \{\
-. if \\n[D]>=3 .tm Footer "\\*[pg*header]" \" that's right
+. if \\n[D]>=3 .tm substitute primary footer: \
+"\\*[pg*header]" \" that's right
. tl \\*[pg*header]
. \}
. el \{\
-. if \\n[D]>=3 .tm Footer "\\*[pg*footer]"
+. if \\n[D]>=3 .tm primary footer: "\\*[pg*footer]"
. tl \\*[pg*footer]
. \}
. af P \\*[hd*format]
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit