summaryrefslogtreecommitdiff
path: root/src/preproc/tbl/table.cpp
diff options
context:
space:
mode:
authorwl <wl>2007-02-12 08:12:45 +0000
committerwl <wl>2007-02-12 08:12:45 +0000
commit1da19aa804c996f75eb59977e3fc14ccb1e8a2a0 (patch)
tree3e74eb28dfe1cce817268499b6651d61696e1de4 /src/preproc/tbl/table.cpp
parent127b24f37a037098344fafa5c7aec862b41c6ff7 (diff)
downloadgroff-1da19aa804c996f75eb59977e3fc14ccb1e8a2a0.tar.gz
* src/preproc/tbl/table.cpp (compute_span_width): Fix use of
AVAILABLE_REG. (table::compute_widths): Simplify.
Diffstat (limited to 'src/preproc/tbl/table.cpp')
-rw-r--r--src/preproc/tbl/table.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index 6c387400..6835d9c0 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -1958,8 +1958,8 @@ void compute_span_width(int start_col, int end_col)
span_left_numeric_width_reg(start_col, end_col),
span_right_numeric_width_reg(start_col, end_col),
span_alphabetic_width_reg(start_col, end_col));
- printfs(".nr %1 -%2\n",
- AVAILABLE_REG, span_width_reg(start_col, end_col));
+ printfs(".nr " AVAILABLE_REG " -\\n[%1]\n",
+ span_width_reg(start_col, end_col));
}
// Increase the widths of columns so that the width of any spanning entry
@@ -2154,13 +2154,13 @@ void table::compute_widths()
for (q = entry_list; q; q = q->next)
if (!q->mod->zero_width)
q->do_width();
- printfs(".nr %1 %2\n", COLCOUNT_REG, as_string(count_block_columns()));
- printfs(".nr %1 \\n[.ll]-\\n[.in]\n", AVAILABLE_REG);
+ printfs(".nr " COLCOUNT_REG " %1\n", as_string(count_block_columns()));
+ prints(".nr " AVAILABLE_REG " \\n[.ll]-\\n[.in]\n");
for (i = 0; i < ncolumns; i++)
compute_span_width(i, i);
for (p = span_list; p; p = p->next)
compute_span_width(p->start_col, p->end_col);
- printfs(".nr %1 0>?\\n[%1]\n", AVAILABLE_REG);
+ prints(".nr " AVAILABLE_REG " 0>?\\n[" AVAILABLE_REG "]\n");
make_columns_equal();
// Note that divide_span keeps equal width columns equal.
for (p = span_list; p; p = p->next)