Article View: net.bugs.v7
Article #119tbl expand bugs
From: utzoohenry
Date: Tue, 19 Apr 1983 21:12
Date: Tue, 19 Apr 1983 21:12
20 lines
1028 bytes
1028 bytes
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
Technical Details
Message-ID:
<bnews.utzoo.2921>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!henry Newsgroups: net.bugs.v7 Title: tbl expand bugs Article-I.D.: utzoo.2921 Posted: Tue Apr 19 21:12:00 1983 Received: Tue Apr 19 21:12:00 1983 Subject: tbl expand bugs Date: Tue, 19 Apr 1983 21:12:00 +0000 Message-ID: <bnews.utzoo.2921>