gbranden pushed a commit to branch master
in repository groff.

commit e5781d46c7261b3e8d39b71308926491b81e8a79
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 28 15:07:08 2026 -0500

    tmac/an.tmac (LS): Do nothing on invalid calls.
---
 ChangeLog    |  4 ++++
 tmac/an.tmac | 13 ++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 339803806..d11b35ea0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2026-07-28  G. Branden Robinson <[email protected]>
+
+       * tmac/an.tmac (LS): Do nothing on invalid calls.
+
 2026-07-27  G. Branden Robinson <[email protected]>
 
        * doc/doc.am (install-doc): Fix missing "install-info"
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 02dbade60..40ffe1133 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1478,18 +1478,18 @@ contains unsupported escape sequence
 .\" .LS {definition|enumerated|itemized} [compactness] [indent]
 .de1 LS
 .  if \\n[DEBUG] .tm GBR: mark VALID09: \\$0
-.  if ((\\n[.$] < 1) : (\\n[.$] > 3)) \
-.    an*style-warn .\\$0 expects 1 to 3 arguments, got \\n[.$]
+.  if ((\\n[.$] < 1) : (\\n[.$] > 3)) \{\
+.    an*style-warn .\\$0 expects 1 to 3 arguments, got \\n[.$]; ignoring
+.    return
+.  \}
 .  ds an*list-type invalid\"
 .  if '\?\\$1\?'\?definition\?' .ds an*list-type \\$1\"
 .  if '\?\\$1\?'\?enumerated\?' .ds an*list-type \\$1\"
 .  if '\?\\$1\?'\?itemized\?'   .ds an*list-type \\$1\"
 .  if '\?\\*[an*list-type]\?'\?invalid\?' \{\
 .    if \\n[DEBUG] .tm GBR: mark INVALID01: \\$0 branch 1
-.    ds an*msg invalid .\\$0 list type '\\*[an*list-type]':
-.    as an*msg " assuming 'definition'
-.    an*warn \\*[an*msg]
-.    ds an*list-type definition\"
+.    an*warn invalid .\\$0 list type '\\$1'; ignoring
+.    return
 .  \}
 .  nr an*list-is-compact 0
 .  if (\\n[.$] > 1) \{\
@@ -1522,7 +1522,6 @@ contains unsupported escape sequence
 .  rm an*list-indent
 .  rr an*list-is-compact
 .  rm an*list-type
-.  rm an*msg
 ..
 .
 .\" End (or "close") the most recently unclosed list.

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

Reply via email to