gbranden pushed a commit to branch master
in repository groff.

commit 849cce28a5a5f4d7b77d1d20a95a7fdc9d251278
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Sep 23 12:24:20 2026 -0500

    [troff]: Tweak diagnostic messages.
    
    * src/roff/troff/input.cpp (do_suppress): Improve structure and wording
      of error diagnostics diagnosing invalid arguments to the `\O` escape
      sequence.
---
 src/roff/troff/input.cpp | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index a0ed96901..2006b2e37 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -7141,22 +7141,23 @@ static node *do_suppress(symbol nm) // \O
       s++;                     // move over '5'
       char position = *s;
       if ('\0' == *s) {
-       error("missing position and file name in output suppression"
-             " escape sequence");
+       error("missing position and image file name"
+             " in output suppression escape sequence");
        return 0 /* nullptr */;
       }
       if ((position != 'l')
          && (position != 'r')
          && (position != 'c')
          && (position != 'i')) {
-       error("expected position 'l', 'r', 'c', or 'i' in output"
-             " suppression escape sequence, got '%1'", position);
+       error("expected position 'l', 'r', 'c', or 'i'"
+             " in output suppression escape sequence,"
+             " got '%1'", position);
        return 0 /* nullptr */;
       }
       s++;                     // onto image name
       if (0 == s /* nullptr */) {
-       error("missing image name in output suppression escape"
-             " sequence");
+       error("missing image file name"
+             " in output suppression escape sequence");
        return 0 /* nullptr */;
       }
       image_no++;

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

Reply via email to