version 1.45, 2018/08/19 23:10:16 |
version 1.46, 2018/11/25 19:23:59 |
|
|
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; |
|
|
/* |
/* |
|
|
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) |