version 1.26, 2018/11/25 19:24:20 |
version 1.28, 2018/11/26 01:51:46 |
Line 126 print_tbl(struct html *h, const struct tbl_span *sp) |
|
Line 126 print_tbl(struct html *h, const struct tbl_span *sp) |
|
default: |
default: |
for (dp = sp->first; dp != NULL; dp = dp->next) { |
for (dp = sp->first; dp != NULL; dp = dp->next) { |
print_stagq(h, tt); |
print_stagq(h, tt); |
switch (dp->layout->pos) { |
|
case TBL_CELL_SPAN: |
/* |
case TBL_CELL_DOWN: |
* Do not generate <td> elements for continuations |
|
* of spanned cells. Larger <td> elements covering |
|
* this space were already generated earlier. |
|
*/ |
|
|
|
if (dp->layout->pos == TBL_CELL_SPAN || |
|
dp->layout->pos == TBL_CELL_DOWN || |
|
(dp->string != NULL && |
|
strcmp(dp->string, "\\^") == 0)) |
continue; |
continue; |
default: |
|
break; |
|
} |
|
|
|
/* Determine the attribute values. */ |
/* Determine the attribute values. */ |
|
|
Line 170 print_tbl(struct html *h, const struct tbl_span *sp) |
|
Line 175 print_tbl(struct html *h, const struct tbl_span *sp) |
|
|
|
/* Print the element and the attributes. */ |
/* Print the element and the attributes. */ |
|
|
if (halign == NULL && valign == NULL) |
print_otag(h, TAG_TD, "??ss", |
print_otag(h, TAG_TD, "??", |
"colspan", hspans, "rowspan", vspans, |
"colspan", hspans, "rowspan", vspans); |
"vertical-align", valign, |
else if (halign == NULL) |
"text-align", halign); |
print_otag(h, TAG_TD, "??s", |
|
"colspan", hspans, "rowspan", vspans, |
|
"vertical-align", valign); |
|
else if (valign == NULL) |
|
print_otag(h, TAG_TD, "??s", |
|
"colspan", hspans, "rowspan", vspans, |
|
"text-align", halign); |
|
else |
|
print_otag(h, TAG_TD, "??ss", |
|
"colspan", hspans, "rowspan", vspans, |
|
"vertical-align", valign, |
|
"text-align", halign); |
|
if (dp->string != NULL) |
if (dp->string != NULL) |
print_text(h, dp->string); |
print_text(h, dp->string); |
} |
} |