version 1.8, 2011/01/04 13:14:26 |
version 1.10, 2011/01/04 15:02:00 |
Line 253 tbl_data(struct termp *tp, const struct tbl *tbl, |
|
Line 253 tbl_data(struct termp *tp, const struct tbl *tbl, |
|
} |
} |
|
|
switch (dp->pos) { |
switch (dp->pos) { |
|
case (TBL_DATA_NONE): |
|
tbl_char(tp, ASCII_NBRSP, tbp->width); |
|
return; |
case (TBL_DATA_HORIZ): |
case (TBL_DATA_HORIZ): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (TBL_DATA_NHORIZ): |
case (TBL_DATA_NHORIZ): |
Line 420 tbl_calc(struct termp *tp, const struct tbl_span *sp) |
|
Line 423 tbl_calc(struct termp *tp, const struct tbl_span *sp) |
|
hp = sp->head; |
hp = sp->head; |
|
|
for ( ; sp; sp = sp->next) { |
for ( ; sp; sp = sp->next) { |
switch (sp->pos) { |
if (TBL_SPAN_DATA != sp->pos) |
case (TBL_DATA_HORIZ): |
|
/* FALLTHROUGH */ |
|
case (TBL_DATA_DHORIZ): |
|
continue; |
continue; |
default: |
|
break; |
|
} |
|
for (dp = sp->first; dp; dp = dp->next) { |
for (dp = sp->first; dp; dp = dp->next) { |
if (NULL == dp->layout) |
if (NULL == dp->layout) |
continue; |
continue; |
|
|
tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
const struct tbl_dat *dp, struct termp_tbl *tblp) |
const struct tbl_dat *dp, struct termp_tbl *tblp) |
{ |
{ |
|
int sz; |
|
|
/* Branch down into data sub-types. */ |
/* Branch down into data sub-types. */ |
|
|
Line 462 tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
|
Line 461 tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
|
case (TBL_CELL_HORIZ): |
case (TBL_CELL_HORIZ): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (TBL_CELL_DHORIZ): |
case (TBL_CELL_DHORIZ): |
tblp->width = term_len(tp, 1); |
sz = term_len(tp, 1); |
|
if (tblp->width < sz) |
|
tblp->width = sz; |
break; |
break; |
case (TBL_CELL_LONG): |
case (TBL_CELL_LONG): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |