gbranden pushed a commit to branch master
in repository groff.

commit a81806bdfe357eb057a4e285ae203163fc39911d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Oct 28 04:58:36 2025 -0500

    [tbl]: Revise diagnostics.
    
    * src/preproc/tbl/main.cpp (process_format): Demote error diagnostics
      when ignoring excess vertical lines in row descriptions to warnings,
      and recast them.
    
    * src/preproc/tbl/table.cpp (process_format): Demote error diagnostics
      when ignoring vertical lines at boxed table edges to warnings.
---
 ChangeLog                 | 11 +++++++++++
 src/preproc/tbl/main.cpp  |  5 +++--
 src/preproc/tbl/table.cpp |  4 ++--
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ad472eda4..2fd89a15a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2025-10-28  G. Branden Robinson <[email protected]>
+
+       [tbl]: Revise diagnostics.
+
+       * src/preproc/tbl/main.cpp (process_format): Demote error
+       diagnostics when ignoring excess vertical lines in row
+       descriptions to warnings, and recast them.
+       * src/preproc/tbl/table.cpp (process_format): Demote error
+       diagnostics when ignoring vertical lines at boxed table edges to
+       warnings.
+
 2025-10-28  G. Branden Robinson <[email protected]>
 
        * src/preproc/tbl/table.cpp: Rename macro storing name of *roff
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index 8e5b4d2a5..99ba66b09 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -883,7 +883,8 @@ format *process_format(table_input &in, options *opt,
     list = new input_entry_format(t, list);
     if (vrule_count > 2) {
       vrule_count = 2;
-      error("more than 2 vertical lines at beginning of row description");
+      warning("ignoring excess vertical lines at beginning of row"
+             " description");
     }
     list->vrule_count = vrule_count;
     // Now handle modifiers.
@@ -1173,7 +1174,7 @@ format *process_format(table_input &in, options *opt,
     } while (is_valid_modifier_sequence);
     if (vrule_count > 2) {
       vrule_count = 2;
-      error("more than 2 vertical lines after column descriptor");
+      warning("ignoring excess vertical lines after column descriptor");
     }
     list->vrule += vrule_count;
     if (c == '\n' || c == ',') {
diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index 5dd590b83..c98d8fd95 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -1769,12 +1769,12 @@ void table::add_vrules(int r, const char *v)
     assert(v[i] < 3);
     if (v[i] && (flags & (BOX | ALLBOX | DOUBLEBOX)) && (i == 0)
        && (!lwarned)) {
-      error("ignoring vertical line at leading edge of boxed table");
+      warning("ignoring vertical line at leading edge of boxed table");
       lwarned = true;
     }
     else if (v[i] && (flags & (BOX | ALLBOX | DOUBLEBOX))
             && (i == ncolumns) && (!twarned)) {
-      error("ignoring vertical line at trailing edge of boxed table");
+      warning("ignoring vertical line at trailing edge of boxed table");
       twarned = true;
     }
     else

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

Reply via email to