gbranden pushed a commit to branch master
in repository groff.

commit 67691bafd056ae55ec3bd2ba751638277157cdd4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun May 10 06:28:58 2026 -0500

    tmac/an.tmac: Slightly refactor.
    
    * tmac/an.tmac (IP): Call `an*break-paragraph` only if there are no
      arguments.  If arguments are present, we call `TP`, which already
      calls the aforementioned internal macro.  This way we avoid calling it
      duplicatively.  Right now there's no visible effect, but there is with
      forthcoming work to implement new `LS` and `LE` macros.
---
 ChangeLog    | 9 +++++++++
 tmac/an.tmac | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index dad39a313..8b221d396 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-05-10  G. Branden Robinson <[email protected]>
+
+       * tmac/an.tmac (IP): Slightly refactor.  Call
+       `an*break-paragraph` only if there are no arguments.  If
+       arguments are present, we call `TP`, which already calls the
+       aforementioned internal macro.  This way we avoid calling it
+       duplicatively.  Right now there's no visible effect, but there
+       is with forthcoming work to implement new `LS` and `LE` macros.
+
 2026-05-10  G. Branden Robinson <[email protected]>
 
        * tmac/doc.tmac: Recognize that using the "X100-12" or "X75-12"
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 0c7dfc973..5a86c22ab 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -911,8 +911,8 @@ contains unsupported escape sequence
 .\" .IP [marker[ indentation-amount]]
 .de1 IP
 .  nr an*enforce-tag-separation 0
-.  an*break-paragraph
 .  ie !\\n[.$] \{\
+.    an*break-paragraph
 .    ne (1v + 1u)
 .    in (\\n[an*margin]u + \\n[an*prevailing-indent]u)
 .  \}

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

Reply via email to