gbranden pushed a commit to branch master
in repository groff.
commit 0ab6c04de038171ded3c9c31f885018ab93c32d4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Nov 11 05:13:10 2026 -0600
src/preproc/tbl/main.cpp: Clarify error diagnostic.
...when a table description lacks corresponding data.
* src/preproc/tbl/main.cpp (process_data): Do it.
---
ChangeLog | 5 +++++
src/preproc/tbl/main.cpp | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4872ab71d..9f23f89dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-11-11 G. Branden Robinson <[email protected]>
+
+ * src/preproc/tbl/main.cpp (process_data): Clarify error
+ diagnostic when a table description lacks corresponding data.
+
2026-11-11 G. Branden Robinson <[email protected]>
* src/preproc/tbl/main.cpp (process_data): Give up on a table
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index 8e0b28529..60d44443e 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -1619,7 +1619,7 @@ static table *process_data(table_input &in, format *f,
options *opt)
if (line.length() >= 4
&& line[0] == '.' && line[1] == 'T' && line[2] == '&') {
if (!give_up && (0 == current_row)) {
- error("no data in table");
+ error("no data found for preceding table description");
give_up = true;
}
else {
@@ -1650,7 +1650,7 @@ static table *process_data(table_input &in, format *f,
options *opt)
break;
}
if (!give_up && (0 == current_row)) {
- error("no data in table");
+ error("no data found for preceding table description");
give_up = true;
}
if (give_up) {
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit