gbranden pushed a commit to branch master in repository groff. commit cacb0f114477975590e4013669467dd3f6731d11 Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Sat May 4 14:24:01 2024 -0500
[man]: Reset more state in `TH` macro. * tmac/an.tmac (TH): Reset `mE` and `mS` registers from "an-ext.tmac" to zero upon beginning a new document. The reduces potential misrendering when batch formatting multiple documents in the event one of them leaves a synopsis or example "hanging open" without closing it with a `YS` or `EE` call. (These are unlikely failure modes for pages that end civilly with a "See Also" section.) --- ChangeLog | 5 +++++ tmac/an.tmac | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3fd8a37d5..c71a8469a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-05-04 G. Branden Robinson <g.branden.robin...@gmail.com> + + * tmac/an.tmac (TH): Reset `mE` and `mS` registers from + "an-ext.tmac" to zero upon beginning a new document. + 2024-05-03 G. Branden Robinson <g.branden.robin...@gmail.com> [man]: Revise and expand `SY` and `YS` macro behavior, largely diff --git a/tmac/an.tmac b/tmac/an.tmac index 3f6a295e9..e17ba1758 100644 --- a/tmac/an.tmac +++ b/tmac/an.tmac @@ -302,6 +302,10 @@ . ad \\*[AD] . ll \\n[LL]u . +. \" Reset any lingering state from extensions in an-ext.tmac. +. nr mE 0 +. nr mS 0 +. . \" We've seen no tbl(1) tables yet in this document. . rr TW . nr an-was-tbl-failure-reported 0 _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit