gbranden pushed a commit to branch master
in repository groff.
commit fbda4a4d313f073883bac6a450e5cecfea0868e0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Aug 28 09:06:10 2026 -0500
[man]: Fix Savannah #68656.
* tmac/an.tmac: Refactor to separate inter-paragraph spacing operations
from paragraph "dimensioning" (line length, inset, indentation).
(an*reset-paragraph): New macro paragraph resets paragraph dimensions,
assuming duties formerly handled by `P`.
(P): Call new macro, retaining `an*break-paragraph` call.
(LE): Call new macro.
Fixes <https://savannah.gnu.org/bugs/?68656>. Thanks to Alex Colomar
for identifying an `LS`/`LE` use case revealing this gap.
---
ChangeLog | 14 ++++++++++++++
tmac/an.tmac | 11 ++++++++---
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f0dabd563..dbb50d5cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2026-08-28 G. Branden Robinson <[email protected]>
+
+ * tmac/an.tmac: Refactor to separate inter-paragraph spacing
+ operations from paragraph "dimensioning" (line length, inset,
+ indentation).
+ (an*reset-paragraph): New macro paragraph resets paragraph
+ dimensions, assuming duties formerly handled by `P`.
+ (P): Call new macro, retaining `an*break-paragraph` call.
+ (LE): Call new macro.
+
+ Fixes <https://savannah.gnu.org/bugs/?68656>. Thanks to Alex
+ Colomar for identifying an `LS`/`LE` use case revealing this
+ gap.
+
2026-08-28 G. Branden Robinson <[email protected]>
* tmac/tests/an_LS-and-LE-work.sh: Regression-test Savannah
diff --git a/tmac/an.tmac b/tmac/an.tmac
index fe09aaab7..7c5a8f1fb 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -892,14 +892,18 @@ contains unsupported escape sequence
. if \\n[.$] \&\\$*
..
.
-.\" Set an ordinary paragraph.
-.de1 P
-. an*break-paragraph
+.de1 an*reset-paragraph
. ll \\n[LL]u
. in \\n[an*margin]u
. nr an*prevailing-indent \\n[IN]
..
.
+.\" Set an ordinary paragraph.
+.de1 P
+. an*break-paragraph
+. an*reset-paragraph
+..
+.
.\" Accommodate ms(7) paragraphing refugees.
.als LP P
.als PP P
@@ -1529,6 +1533,7 @@ contains unsupported escape sequence
. if !\\n[an*list-depth] \
. an*warn ignoring .\\$0 call when no list open
. if \\n[DEBUG] .tm GBR: mark VALID14: \\$0
+. an*reset-paragraph
. rm an*list-indent!\\n[an*list-depth]
. rr an*list-is-compact!\\n[an*list-depth]
. rm an*list-type!\\n[an*list-depth]
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit