tbl expand bugs
utzoo!henry
utzoo!henry
Tue Apr 19 21:12:00 AEST 1983
There are a couple of bugs in tbl's "expand" mode. It ignores the
possibility of a non-zero indent, and its minimum intercolumn spacing
is 0 rather than a more reasonable 1 en. To fix this, look in t6.c,
about line 140, for a section headed "now adjust for total table width".
Within that, make the following two changes (line numbers approximate):
148c149
< fprintf(tabout, ".nr %d \\n(.l-\\n(%d\n", TMP, TMP);
---
> fprintf(tabout, ".nr %d \\n(.l-\\n(.i-\\n(%d\n", TMP, TMP);
154c155
< fprintf(tabout, ".if \\n(%d<0 .nr %d 0\n", TMP, TMP);
---
> fprintf(tabout, ".if \\n(%d<1n .nr %d 1n\n", TMP, TMP);
With thanks to David Trueman, who spotted the second problem and
diagnosed the first.
Henry Spencer
U of Toronto
More information about the Net.bugs.v7
mailing list