gbranden pushed a commit to branch master
in repository groff.
commit 5224b109bf2bae3248361c758ee098b3aae70959
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Nov 20 00:16:24 2025 -0600
[troff]: Revise wording of error diagnostics.
* src/roff/troff/input.cpp (define_character)
(check_missing_character): Revise wording of error diagnostics to
mention indexed characters alongside ordinary and special ones.
---
ChangeLog | 7 +++++++
src/roff/troff/input.cpp | 10 +++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ca2259af1..32a18ae96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-11-20 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (define_character)
+ (check_missing_character): Revise wording of error diagnostics
+ to mention indexed characters alongside ordinary and special
+ ones.
+
2025-11-20 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (read_title_parts): Avoid null
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2477329f2..562d64802 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -4923,9 +4923,9 @@ void define_character(char_mode mode, const char
*font_name)
else if (tok.is_tab())
c = '\t';
else if (!tok.is_space()) {
- error("ignoring invalid%1 character definition; expected one"
- " ordinary or special character to define, got %2", modestr,
- tok.description());
+ error("ignoring invalid%1 character definition; expected an"
+ " ordinary, indexed, or special character to define, got %2",
+ modestr, tok.description());
skip_line();
return;
}
@@ -8698,8 +8698,8 @@ void check_missing_character()
{
if (!tok.is_newline() && !tok.is_eof() && !tok.is_right_brace()
&& !tok.is_tab())
- error("expected ordinary or special character, got %1; treated as"
- " missing", tok.description());
+ error("expected ordinary, special, or indexed character, got %1;"
+ " ignoring", tok.description());
}
// this is for \Z
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit