version 1.73, 2018/08/19 23:10:28 |
version 1.74, 2018/11/25 19:24:20 |
Line 112 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp |
|
Line 112 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp |
|
const struct tbl_dat *dp; |
const struct tbl_dat *dp; |
struct roffcol *col; |
struct roffcol *col; |
size_t ewidth, xwidth; |
size_t ewidth, xwidth; |
int spans; |
int hspans; |
int icol, maxcol, necol, nxcol, quirkcol; |
int icol, maxcol, necol, nxcol, quirkcol; |
|
|
/* |
/* |
Line 129 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp |
|
Line 129 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp |
|
for (maxcol = -1; sp; sp = sp->next) { |
for (maxcol = -1; sp; sp = sp->next) { |
if (TBL_SPAN_DATA != sp->pos) |
if (TBL_SPAN_DATA != sp->pos) |
continue; |
continue; |
spans = 1; |
hspans = 1; |
/* |
/* |
* Account for the data cells in the layout, matching it |
* Account for the data cells in the layout, matching it |
* to data cells in the data section. |
* to data cells in the data section. |
*/ |
*/ |
for (dp = sp->first; dp; dp = dp->next) { |
for (dp = sp->first; dp; dp = dp->next) { |
/* Do not used spanned cells in the calculation. */ |
/* Do not used spanned cells in the calculation. */ |
if (0 < --spans) |
if (0 < --hspans) |
continue; |
continue; |
spans = dp->spans; |
hspans = dp->hspans; |
if (1 < spans) |
if (1 < hspans) |
continue; |
continue; |
icol = dp->layout->col; |
icol = dp->layout->col; |
while (maxcol < icol) |
while (maxcol < icol) |