=================================================================== RCS file: /cvs/mandoc/tbl_html.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -p -r1.35 -r1.36 --- mandoc/tbl_html.c 2021/05/16 23:18:35 1.35 +++ mandoc/tbl_html.c 2021/08/10 12:55:04 1.36 @@ -1,4 +1,4 @@ -/* $Id: tbl_html.c,v 1.35 2021/05/16 23:18:35 schwarze Exp $ */ +/* $Id: tbl_html.c,v 1.36 2021/08/10 12:55:04 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2014,2015,2017,2018,2021 Ingo Schwarze @@ -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);