version 1.28, 2014/08/10 23:54:41 |
version 1.29, 2014/10/13 23:31:46 |
Line 43 static void tbl_number(struct termp *, const struct tb |
|
Line 43 static void tbl_number(struct termp *, const struct tb |
|
const struct roffcol *); |
const struct roffcol *); |
static void tbl_hrule(struct termp *, const struct tbl_span *); |
static void tbl_hrule(struct termp *, const struct tbl_span *); |
static void tbl_vrule(struct termp *, const struct tbl_head *); |
static void tbl_vrule(struct termp *, const struct tbl_head *); |
|
static void tbl_word(struct termp *, const struct tbl_dat *); |
|
|
|
|
static size_t |
static size_t |
Line 378 tbl_literal(struct termp *tp, const struct tbl_dat *dp |
|
Line 379 tbl_literal(struct termp *tp, const struct tbl_dat *dp |
|
} |
} |
|
|
tbl_char(tp, ASCII_NBRSP, padl); |
tbl_char(tp, ASCII_NBRSP, padl); |
term_word(tp, dp->string); |
tbl_word(tp, dp); |
tbl_char(tp, ASCII_NBRSP, padr); |
tbl_char(tp, ASCII_NBRSP, padr); |
} |
} |
|
|
Line 419 tbl_number(struct termp *tp, const struct tbl_opts *op |
|
Line 420 tbl_number(struct termp *tp, const struct tbl_opts *op |
|
padl = col->decimal - d; |
padl = col->decimal - d; |
|
|
tbl_char(tp, ASCII_NBRSP, padl); |
tbl_char(tp, ASCII_NBRSP, padl); |
term_word(tp, dp->string); |
tbl_word(tp, dp); |
if (col->width > sz + padl) |
if (col->width > sz + padl) |
tbl_char(tp, ASCII_NBRSP, col->width - sz - padl); |
tbl_char(tp, ASCII_NBRSP, col->width - sz - padl); |
} |
} |
|
|
|
static void |
|
tbl_word(struct termp *tp, const struct tbl_dat *dp) |
|
{ |
|
const void *prev_font; |
|
|
|
prev_font = term_fontq(tp); |
|
if (dp->layout->flags & TBL_CELL_BOLD) |
|
term_fontpush(tp, TERMFONT_BOLD); |
|
else if (dp->layout->flags & TBL_CELL_ITALIC) |
|
term_fontpush(tp, TERMFONT_UNDER); |
|
|
|
term_word(tp, dp->string); |
|
|
|
term_fontpopq(tp, prev_font); |
|
} |