summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tbl_html.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/tbl_html.c b/tbl_html.c
index 8d408211..6ff72aad 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -175,22 +175,10 @@ print_tbl(struct html *h, const struct tbl_span *sp)
/* Print the element and the attributes. */
- if (halign == NULL && valign == NULL)
- print_otag(h, TAG_TD, "??",
- "colspan", hspans, "rowspan", vspans);
- else if (halign == NULL)
- 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);
+ print_otag(h, TAG_TD, "??ss",
+ "colspan", hspans, "rowspan", vspans,
+ "vertical-align", valign,
+ "text-align", halign);
if (dp->string != NULL)
print_text(h, dp->string);
}