gbranden pushed a commit to branch master
in repository groff.
commit a5b0f4f5e0b53c55cdeb78ffc71e28c30f5cc88b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 8 18:05:31 2026 -0500
src/roff/troff/env.cpp: Clarify "range" warnings.
* src/roff/troff/env.cpp (space_size): Clarify warning diagnostics in
category "range".
---
ChangeLog | 5 +++++
src/roff/troff/env.cpp | 7 ++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 96ca3b707..d9d250b69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-04-08 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (space_size): Clarify warning
+ diagnostics in category "range".
+
2026-04-08 G. Branden Robinson <[email protected]>
* src/roff/troff/number.cpp (is_valid_term): Compare local
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index ab265032c..4e39490d9 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1466,13 +1466,14 @@ static void space_size() // .ss
int n;
if (read_integer(&n)) {
if (n < 0)
- warning(WARN_RANGE, "ignoring negative word space size: '%1'", n);
+ warning(WARN_RANGE, "ignoring negative interword space size:"
+ " '%1'", n);
else
curenv->set_interword_space_size(n);
if (has_arg() && read_integer(&n))
if (n < 0)
- warning(WARN_RANGE, "ignoring negative sentence space size: "
- "'%1'", n);
+ warning(WARN_RANGE, "ignoring negative supplemental"
+ " inter-sentence space size: '%1'", n);
else
curenv->set_supplemental_intersentence_space_size(n);
else
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit