groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 09/50: [grotty]: Modify diagnostic message.


From: G. Branden Robinson
Subject: [groff] 09/50: [grotty]: Modify diagnostic message.
Date: Sat, 21 May 2022 12:17:23 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 5e2b557941d1415e4597aff6b329b31d1efb7a7f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+       * 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 <g.branden.robinson@gmail.com>
 
        [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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]