version 1.19, 2017/01/17 01:47:51 |
version 1.20, 2017/02/05 18:15:39 |
Line 50 html_tbl_strlen(const char *p, void *arg) |
|
Line 50 html_tbl_strlen(const char *p, void *arg) |
|
static void |
static void |
html_tblopen(struct html *h, const struct tbl_span *sp) |
html_tblopen(struct html *h, const struct tbl_span *sp) |
{ |
{ |
|
struct tag *t; |
int ic; |
int ic; |
|
|
if (h->tbl.cols == NULL) { |
if (h->tbl.cols == NULL) { |
Line 61 html_tblopen(struct html *h, const struct tbl_span *sp |
|
Line 62 html_tblopen(struct html *h, const struct tbl_span *sp |
|
assert(NULL == h->tblt); |
assert(NULL == h->tblt); |
h->tblt = print_otag(h, TAG_TABLE, "c", "tbl"); |
h->tblt = print_otag(h, TAG_TABLE, "c", "tbl"); |
|
|
|
t = print_otag(h, TAG_COLGROUP, ""); |
for (ic = 0; ic < sp->opts->cols; ic++) |
for (ic = 0; ic < sp->opts->cols; ic++) |
print_otag(h, TAG_COL, "shw", h->tbl.cols[ic].width); |
print_otag(h, TAG_COL, "shw", h->tbl.cols[ic].width); |
|
print_tagq(h, t); |
print_otag(h, TAG_TBODY, ""); |
|
} |
} |
|
|
void |
void |