gbranden pushed a commit to branch master
in repository groff.
commit 5e2b557941d1415e4597aff6b329b31d1efb7a7f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 16 22:46:15 2022 -0500
[grotty]: Modify diagnostic message.
* src/devices/grotty/tty.cpp (tty_printer::add_char): Modify diagnostic
message: what gets written "above [the] first line" might not be a
character (glyph) per se, but a line (rule) from a drawing command,
and in fact the occurrence of these from boxed tables is the most
common cause of this message I've seen.
---
ChangeLog | 8 ++++++++
src/devices/grotty/tty.cpp | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d028a2e2..b2cbc109 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-05-16 G. Branden Robinson <[email protected]>
+
+ * src/devices/grotty/tty.cpp (tty_printer::add_char): Modify
+ diagnostic message: what gets written "above [the] first line"
+ might not be a character (glyph) per se, but a line (rule) from
+ a drawing command, and in fact the occurrence of these from
+ boxed tables is the most common cause of this message I've seen.
+
2022-05-16 G. Branden Robinson <[email protected]>
[grotty]: Do more input validation.
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index 787fd33b..32cdffa1 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -382,7 +382,7 @@ void tty_printer::add_char(output_character c, int w,
// Note that the first output line corresponds to groff
// position font::vert.
if (vpos <= 0) {
- error("character above first line discarded");
+ error("output above first line discarded");
return;
}
cached_v = v;
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit