gbranden pushed a commit to branch master
in repository groff.
commit 13b9ad2b364397064d1ccd9627e7059da786c79f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jan 24 15:46:08 2023 -0600
[grohtml]: Fix misleading diagnostic message.
* src/preproc/html/pre-html.cpp (main): The suggestion should be to
re-run the formatter (groff, troff), not "pre-grohtml", with a
different output driver since the document may be malformed.
---
ChangeLog | 8 ++++++++
src/preproc/html/pre-html.cpp | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 27bdb51d5..4603d7d91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-01-24 G. Branden Robinson <[email protected]>
+
+ [grohtml]: Fix misleading diagnostic message.
+
+ * src/preproc/html/pre-html.cpp (main): The suggestion should be
+ to re-run the formatter (groff, troff), not "pre-grohtml", with
+ a different output driver since the document may be malformed.
+
2023-01-11 G. Branden Robinson <[email protected]>
* src/preproc/tbl/main.cpp (process_format): Fix code hygiene
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp
index e8902f12b..9b4197659 100644
--- a/src/preproc/html/pre-html.cpp
+++ b/src/preproc/html/pre-html.cpp
@@ -1807,8 +1807,8 @@ int main(int argc, char **argv)
else
if (WEXITSTATUS(wstatus) != 0)
// XXX: This is a crappy suggestion. See Savannah #62673.
- fatal("'%1' exited with status %2; re-run '%1' with a different"
- " output driver to see diagnostic messages", argv[0],
+ fatal("'%1' exited with status %2; re-run with a different output"
+ " driver to see diagnostic messages", argv[0],
WEXITSTATUS(wstatus));
exit(EXIT_SUCCESS);
}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit