diff options
-rw-r--r-- | html.c | 1 | ||||
-rw-r--r-- | html.h | 1 | ||||
-rw-r--r-- | tbl_html.c | 7 |
3 files changed, 8 insertions, 1 deletions
@@ -91,6 +91,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"span", HTML_INPHRASE | HTML_TOPHRASE}, {"var", HTML_INPHRASE | HTML_TOPHRASE}, {"br", HTML_INPHRASE | HTML_NOSTACK | HTML_NLALL}, + {"hr", HTML_INPHRASE | HTML_NOSTACK}, {"mark", HTML_INPHRASE }, {"math", HTML_INPHRASE | HTML_NLALL | HTML_INDENT}, {"mrow", 0}, @@ -51,6 +51,7 @@ enum htmltag { TAG_SPAN, TAG_VAR, TAG_BR, + TAG_HR, TAG_MARK, TAG_MATH, TAG_MROW, @@ -241,7 +241,12 @@ print_tbl(struct html *h, const struct tbl_span *sp) "vertical-align", valign, "text-align", halign, "border-right-style", rborder); - if (dp->string != NULL) { + if (dp->layout->pos == TBL_CELL_HORIZ || + dp->layout->pos == TBL_CELL_DHORIZ || + dp->pos == TBL_DATA_HORIZ || + dp->pos == TBL_DATA_DHORIZ) + print_otag(h, TAG_HR, ""); + else if (dp->string != NULL) { save_font = h->metac; html_setfont(h, dp->layout->font); if (dp->layout->pos == TBL_CELL_LONG) |