gbranden pushed a commit to branch master
in repository groff.

commit ccc54911c741fdcbd37c05cd711a634f2f19dd5e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Nov 19 23:46:28 2025 -0600

    [troff]: Revise `hw` diagnostic message wording.
    
    * src/roff/troff/env.cpp (add_hyphenation_exceptions): Revise wording of
      diagnostic messages, better paralleling language in our documentation.
---
 ChangeLog              | 6 ++++++
 src/roff/troff/env.cpp | 8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index dc9323c4a..ca2259af1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,12 @@
        * src/roff/troff/input.cpp (read_title_parts): Avoid null
        pointer dereference.
 
+2025-11-19  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/env.cpp (add_hyphenation_exceptions): Revise
+       wording of diagnostic messages, better paralleling language in
+       our documentation.
+
 2025-11-19  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/env.cpp (add_hyphenation_exceptions): Drop
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index dd90bf030..b7692d96c 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3827,14 +3827,14 @@ const int WORD_MAX = 256;       // we use unsigned char 
for offsets in
 static void add_hyphenation_exceptions()
 {
   if (!has_arg()) {
-    warning(WARN_MISSING, "hyphenation exception request expects one or"
-           " more arguments");
+    warning(WARN_MISSING, "hyphenation exception word request expects"
+           " one or more arguments");
     skip_line();
     return;
   }
   if (0 /* nullptr */ == current_language) {
-    error("cannot add hyphenation exceptions when no hyphenation"
-         " language is set");
+    error("cannot add hyphenation exception words when no hyphenation"
+         " language is selected");
     skip_line();
     return;
   }

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

Reply via email to