version 1.14, 2017/01/17 01:47:46 |
version 1.15, 2017/02/05 18:13:28 |
|
|
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) { |
|
|
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 |