summaryrefslogtreecommitdiffstats
path: root/tbl_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_html.c')
-rw-r--r--tbl_html.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tbl_html.c b/tbl_html.c
index 0b18a1b0..a4463d2e 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -243,10 +243,7 @@ print_tbl(struct html *h, const struct tbl_span *sp)
"border-right-style", rborder);
if (dp->string != NULL) {
save_font = h->metac;
- if (dp->layout->flags & TBL_CELL_BOLD)
- html_setfont(h, ESCAPE_FONTBOLD);
- else if (dp->layout->flags & TBL_CELL_ITALIC)
- html_setfont(h, ESCAPE_FONTITALIC);
+ html_setfont(h, dp->layout->font);
if (dp->layout->pos == TBL_CELL_LONG)
print_text(h, "\\[u2003]"); /* em space */
print_text(h, dp->string);