gbranden pushed a commit to branch master
in repository groff.
commit 43362b55b3c15ab072bf3be48b8f0cff1077fd00
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jul 20 05:29:45 2025 -0500
tmac/an.tmac: Slightly refactor.
* tmac/an.tmac (TH, SH, SS): Rearrange macro calls to place
`an*reset-section-parameters` before calls of macros that adjust
formatting parameters of smaller scope. This should (and, per our
automated tests, does) produce no behavioral changes; it's for clarity
to macro package maintainers and source divers.
---
ChangeLog | 9 +++++++++
tmac/an.tmac | 6 +++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ee2fe1cad..083bd0a7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-07-20 G. Branden Robinson <[email protected]>
+
+ * tmac/an.tmac: Slightly refactor.
+ (TH, SH, SS): Rearrange macro calls to place
+ `an*reset-section-parameters` before calls of macros that adjust
+ formatting parameters of smaller scope. This should (and, per
+ our automated tests, does) produce no behavioral changes; it's
+ for clarity to macro package maintainers and source divers.
+
2025-07-20 G. Branden Robinson <[email protected]>
* tmac/an.tmac: Trivially refactor, continuing a name space
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 1cf503675..2538cdb6b 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -285,10 +285,10 @@
. rr TW
. nr an-was-tbl-failure-reported 0
.
+. an*reset-section-parameters
. an*reset-hyphenation-mode
. an*reset-tab-stops
. an*reset-paragraph-spacing
-. an*reset-section-parameters
.
. nr an-need-no-space-mode 0
. nr an-need-break 0
@@ -698,9 +698,9 @@ contains unsupported escape sequence
.\" Set arguments (or next input line producing written or drawn output
.\" if none) as a section heading.
.de1 SH
+. an*reset-section-parameters
. fam \\*[an*body-family]
. an*break-paragraph
-. an*reset-section-parameters
. fi
. in \\n[BP]u
. ti 0
@@ -727,9 +727,9 @@ contains unsupported escape sequence
.\" Set arguments (or next input line producing written or drawn output
.\" if none) as a subsection heading.
.de1 SS
+. an*reset-section-parameters
. fam \\*[an*body-family]
. an*break-paragraph
-. an*reset-section-parameters
. fi
. in \\n[BP]u
. ti \\n[SN]u
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit