groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/10: src/preproc/tbl/main.cpp (main): Clarify error.


From: G. Branden Robinson
Subject: [groff] 04/10: src/preproc/tbl/main.cpp (main): Clarify error.
Date: Fri, 16 Oct 2020 10:59:43 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 752d016edb10e21839e9be5a1c86b978d0d37214
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 16 23:44:50 2020 +1100

    src/preproc/tbl/main.cpp (main): Clarify error.
    
    Clarify fatal diagnostic in generated document by informing the user
    that the program is aborting, and also that it is groff extensions that
    are required rather than GNU troff per se (since Heirloom Doctools troff
    claims groff extension support via the .g register).
---
 src/preproc/tbl/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index 2c2eaa1..f057089 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -1596,9 +1596,9 @@ int main(int argc, char **argv)
     default:
       assert(0);
     }
-  printf(".if !\\n(.g .ab GNU tbl requires GNU troff.\n"
         ".if !dTS .ds TS\n"
         ".if !dTE .ds TE\n");
+  printf(".if !\\n(.g .ab GNU tbl requires groff extensions; aborting\n"
   if (argc > optind) {
     for (int i = optind; i < argc; i++) 
       if (argv[i][0] == '-' && argv[i][1] == '\0') {



reply via email to

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