gbranden pushed a commit to branch master
in repository groff.

commit a8b0800de9da0095fce4f75fadb0cd880859195b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Dec 5 06:55:35 2025 -0600

    [troff]: Say nothing more quietly.
    
    * src/roff/troff/input.cpp (print_character_request): Don't try to
      describe a special character (or class) that doesn't exist; say
      nothing, just as we do with `.pnr nonexistent` and `.pm nonexistent`.
---
 ChangeLog                | 7 +++++++
 src/roff/troff/input.cpp | 4 +---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ebccfeca3..dbf9a8ad7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-12-05  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (print_character_request): Don't try
+       to describe a special character (or class) that doesn't exist;
+       say nothing, just as we do with `.pnr nonexistent` and `.pm
+       nonexistent`.
+
 2025-12-05  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (token::description): Don't create a
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index d5d912bb5..8d18d6108 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5102,9 +5102,7 @@ static void print_character_request()
     }
     ci = tok.get_charinfo(false /* required */,
                          true /* suppress creation */);
-    if (0 /* nullptr */ == ci)
-      warning(WARN_CHAR, "%1 is not defined", tok.description());
-    else {
+    if (ci != 0 /* nullptr */) {
       errprint("%1\n", tok.description());
       fflush(stderr);
       ci->dump();

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

Reply via email to