version 1.34, 2015/01/28 04:19:35 |
version 1.35, 2015/01/30 02:09:04 |
Line 262 tbl_data(struct termp *tp, const struct tbl_opts *opts |
|
Line 262 tbl_data(struct termp *tp, const struct tbl_opts *opts |
|
const struct roffcol *col) |
const struct roffcol *col) |
{ |
{ |
|
|
if (NULL == dp) { |
if (dp == NULL) { |
tbl_char(tp, ASCII_NBRSP, col->width); |
tbl_char(tp, ASCII_NBRSP, col->width); |
return; |
return; |
} |
} |
assert(dp->layout); |
|
|
|
switch (dp->pos) { |
switch (dp->pos) { |
case TBL_DATA_NONE: |
case TBL_DATA_NONE: |
Line 396 tbl_number(struct termp *tp, const struct tbl_opts *op |
|
Line 395 tbl_number(struct termp *tp, const struct tbl_opts *op |
|
|
|
psz = term_strlen(tp, buf); |
psz = term_strlen(tp, buf); |
|
|
if (NULL != (cp = strrchr(dp->string, opts->decimal))) { |
if ((cp = strrchr(dp->string, opts->decimal)) != NULL) { |
buf[1] = '\0'; |
|
for (ssz = 0, i = 0; cp != &dp->string[i]; i++) { |
for (ssz = 0, i = 0; cp != &dp->string[i]; i++) { |
buf[0] = dp->string[i]; |
buf[0] = dp->string[i]; |
ssz += term_strlen(tp, buf); |
ssz += term_strlen(tp, buf); |