gbranden pushed a commit to branch branden-2023-07-05 in repository groff. commit edcc4e5b91d55834b3dc4ed13092bc24e93495af Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Fri Apr 7 19:30:43 2023 -0500
[eqn]: Recast generated diagnostics. * src/preproc/eqn/main.cpp (main): Prefix generated *roff diagnostics with name of input file (the document). Use `tmc`/`tm1` to coalesce multi-line diagnostic onto one line of output to stderr. Tighten wording. Continues the long process of fixing Savannah #52463. Also reflow long source lines. --- ChangeLog | 8 ++++++++ src/preproc/eqn/main.cpp | 15 +++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87bd8fe11..22a8263d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2023-04-07 G. Branden Robinson <g.branden.robin...@gmail.com> + + * src/preproc/eqn/main.cpp (main): Prefix generated *roff + diagnostics with name of input file (the document). Use + `tmc`/`tm1` to coalesce multi-line diagnostic onto one line of + output to stderr. Tighten wording. Continues the long process + of fixing Savannah #52463. + 2023-04-03 G. Branden Robinson <g.branden.robin...@gmail.com> * src/roff/troff/input.cpp (temp_iterator::temp_iterator): diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp index 81d518443..8c9e17eea 100644 --- a/src/preproc/eqn/main.cpp +++ b/src/preproc/eqn/main.cpp @@ -429,17 +429,16 @@ int main(int argc, char **argv) ".do if !dEN .ds EN\n"); if (output_format == troff) { printf(".if !'\\*(.T'%s' " - ".if !'\\*(.T'html' " // the html device uses '-Tps' to render - // equations as images - ".tm warning: %s should have been given a '-T\\*(.T' option\n", - device, program_name); + // the html device uses '-Tps' to render equations as images + ".if !'\\*(.T'html' " + ".tm \\n[.F]: warning: %s should have been given a" + " '-T\\*(.T' option\n", device, program_name); printf(".if '\\*(.T'html' " ".if !'%s'ps' " - ".tm warning: %s should have been given a '-Tps' option\n", - device, program_name); + ".tmc \\n[.F]: warning: %s should have been given a '-Tps'" + " option\n", device, program_name); printf(".if '\\*(.T'html' " - ".if !'%s'ps' " - ".tm warning: (it is advisable to invoke groff via: groff -Thtml -e)\n", + ".if !'%s'ps' .tm1 (consider invoking 'groff -Thtml -e')\n", device); } if (load_startup_file) { _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit