gbranden pushed a commit to branch master
in repository groff.

commit 201833b36debb618c02359139c8ce97ed35c4430
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 23 19:00:26 2025 -0600

    [troff]: Revise `\Z` delimiter warning text.
    
    * src/roff/troff/input.cpp (do_zero_width_output): Revise text of
      warnings in category "delim" thrown when an inauspicious delimiter is
      selected outside of compatibility mode.
---
 ChangeLog                | 1 +
 src/roff/troff/input.cpp | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 93e6d4d22..322bc945a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2025-11-23  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp
+       (do_zero_width_output)
        (do_name_test)
        (do_bracket)
        (do_overstrike)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 156e10c79..791f38fda 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1883,9 +1883,8 @@ static node *do_zero_width_output() // \Z
   token start_token;
   start_token.next();
   if (!want_att_compat && !start_token.is_usable_as_delimiter())
-    warning(WARN_DELIM, "interpreting %1 as an escape sequence"
-           " delimiter; it is ambiguous because it can also begin a"
-           " numeric expression", start_token.description());
+    warning(WARN_DELIM, "using %1 as an escape sequence delimiter"
+                       " is deprecated", tok.description());
   else if (want_att_compat
            && !start_token.is_usable_as_delimiter(false,
                  DELIMITER_ATT_STRING_EXPRESSION)) {

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

Reply via email to