groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 03/15: [troff]: Tweak error message (e.g., for `\P`).


From: G. Branden Robinson
Subject: [groff] 03/15: [troff]: Tweak error message (e.g., for `\P`).
Date: Thu, 12 Oct 2023 21:55:06 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 4d348c8bd3930a03358caa8464770a31d91580eb
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 7 18:04:54 2023 -0500

    [troff]: Tweak error message (e.g., for `\P`).
    
    * src/roff/troff/input.cpp (token::next): Tweak language of
      diagnostic message when encountering unsupported escape sequence.
    
    * doc/groff.texi (Using Escape Sequences): Update example accordingly.
---
 ChangeLog                | 8 ++++++++
 doc/groff.texi           | 4 ++--
 src/roff/troff/input.cpp | 2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 118462360..1f33ff303 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-10-07  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/input.cpp (token::next): Tweak language of
+       diagnostic message when encountering unsupported escape
+       sequence.
+       * doc/groff.texi (Using Escape Sequences): Update example
+       accordingly.
+
 2023-10-07  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/troff/env.cpp (font_change): Trivially refactor,
diff --git a/doc/groff.texi b/doc/groff.texi
index 9487a5f4a..dfba0afd9 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -464,7 +464,7 @@ Documentation License''.
 @title groff
 @subtitle The GNU implementation of @code{troff}
 @subtitle Edition 1.23.0+Git
-@subtitle September 2023
+@subtitle October 2023
 @author Trent@tie{}A.@: Fisher
 @author Werner Lemberg
 @author G.@tie{}Branden Robinson
@@ -7046,7 +7046,7 @@ $ groff -T ps -ww
 .ds animal elephant
 I have \fI\nN \*(co \*[animal]s,\f[]
 said \P.\&\~Pseudo Pachyderm.
-    @error{} warning: escape character ignored before 'P'
+    @error{} warning: ignoring escape character before 'P'
     @result{} I have @slanted{12 white elephants,} said P. Pseudo Pachyderm.
 @endExample
 
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 693a01386..873c544d1 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2425,7 +2425,7 @@ void token::next()
        goto handle_ordinary_char;
       default:
        if (cc != escape_char && cc != '.')
-         warning(WARN_ESCAPE, "escape character ignored before %1",
+         warning(WARN_ESCAPE, "ignoring escape character before %1",
                  input_char_description(cc));
        goto handle_ordinary_char;
       }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]