gbranden pushed a commit to branch master
in repository groff.
commit 3e81a7586074356acb0d42bb536d59bc8a1e7631
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 9 06:23:13 2026 -0600
src/preproc/tbl/main.cpp: Improve error msgs.
* src/preproc/tbl/main.cpp (process format): In error messages, migrate
"table format specification" to "table description", the term we use
in tbl(1).
---
ChangeLog | 6 ++++++
src/preproc/tbl/main.cpp | 14 ++++++--------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a5ff19ecb..806171940 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-11-09 G. Branden Robinson <[email protected]>
+
+ * src/preproc/tbl/main.cpp (process format): In error messages,
+ migrate "table format specification" to "table description", the
+ term we use in tbl(1).
+
2026-11-09 G. Branden Robinson <[email protected]>
* src/preproc/tbl/main.cpp (process_format): Fix code style nit.
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index 63e162448..d30786cad 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -783,10 +783,9 @@ void input_entry_format::debug_print()
putc(',', stderr);
}
-// Interpret a table format specification, like "CC,LR.". Return null
-// pointer if we should give up on this table. If this is a
-// continuation format line, `current_format` will be the current format
-// line.
+// Interpret a table description, like "CC,LR.". Return null pointer if
+// we should give up on this table. If this is a continued description,
+// `current_format` will be the current description.
static format *process_format(table_input &in, options *opt,
format *current_format = 0 /* nullptr */)
{
@@ -802,8 +801,7 @@ static format *process_format(table_input &in, options *opt,
format_type t = FORMAT_LEFT;
for (;;) {
if (c == EOF) {
- error("end of input while processing table format"
- " specification");
+ error("end of input while processing table description");
free_input_entry_format_list(list);
list = 0 /* nullptr */;
return 0 /* nullptr */;
@@ -1201,14 +1199,14 @@ static format *process_format(table_input &in, options
*opt,
c = in.get();
} while (c == ' ' || c == '\t');
if (c != '\n') {
- error("'.' is not the last character of the table format");
+ error("'.' is not the last character of the table description");
free_input_entry_format_list(list);
list = 0 /* nullptr */;
return 0 /* nullptr */;
}
}
if (!list) {
- error("table format specification is empty");
+ error("table description is empty");
free_input_entry_format_list(list);
list = 0 /* nullptr */;
return 0 /* nullptr */;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit