gbranden pushed a commit to branch master
in repository groff.

commit bbc200287bace8e5a94561033971d788a2fc56d0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 30 16:29:00 2025 -0600

    Revert "[troff]: Adjust wording of `\Z` warning message."
    
    This reverts commit cd1b3c14fbf0eef540b9034f88ab521e5cc3658b.
    
    We have two "zero-width" escape sequences.
    
    \z is the zero-width character escape sequence.
    \Z is the zero-width sequence escape sequence.
    
    (Whether `\z` meaningfully applies to a subsequent token that is not a
    character requires research.  Consider in particular tabs, backspace
    characters, and other horizontal motions.)
---
 ChangeLog                | 6 ------
 src/roff/troff/input.cpp | 2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f0116a68b..026111138 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -96,12 +96,6 @@
        warning diagnostic to better describe what the `do` request
        actually does.
 
-2025-11-24  G. Branden Robinson <[email protected]>
-
-       * src/roff/troff/input.cpp (do_zero_width_output): Adjust
-       wording of warning diagnostic to describe the escape sequence
-       consistently with other messages.
-
 2025-11-24  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (do_overstrike, do_bracket)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 22d9112ae..965f20851 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1890,7 +1890,7 @@ static node *do_zero_width_output() // \Z
   else if (want_att_compat
            && !start_token.is_usable_as_delimiter(false,
                  DELIMITER_ATT_STRING_EXPRESSION)) {
-    warning(WARN_DELIM, "zero-width output escape sequence"
+    warning(WARN_DELIM, "zero-width sequence escape sequence"
            " does not accept %1 as a delimiter",
            start_token.description());
     return 0 /* nullptr */;

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

Reply via email to