gbranden pushed a commit to branch master
in repository groff.

commit 1c3f3b6a90a433c588526daa637113bc9972a2a1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 1 14:14:09 2020 +1100

    Revert "src/roff/troff/input.cpp: Improve diagnostic."
    
    This reverts commit e897451e9ada531a622b3e75c94d125bbe7bb18f.
---
 ChangeLog                | 6 ------
 src/roff/troff/input.cpp | 2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a1cbaa6..e7f9743 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,5 @@
 2020-04-01  G. Branden Robinson <[email protected]>
 
-       * src/roff/troff/input.cpp (read_size_next_byte): Improve
-       diagnostic message; it is not always a digit we will be
-       expecting when called.
-
-2020-04-01  G. Branden Robinson <[email protected]>
-
        Align diagnostic message format.
 
        * src/libs/libgroff/error.cpp (do_error_with_file_and_line):
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 08e1b64..ba3842b 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5044,7 +5044,7 @@ static int read_size_next_byte(void)
   int eof = tok.eof();
   if (eof || tok.newline())
       error_with_file_and_line(saved_filename, saved_lineno,
-                               "unexpected %1 in point-size escape",
+                               "expected digit in point size; got %1",
                                eof ? "end of file" : "newline");
   return tok.ch();
 }

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

Reply via email to