summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html.c1
-rw-r--r--html.h1
-rw-r--r--tbl_html.c7
3 files changed, 8 insertions, 1 deletions
diff --git a/html.c b/html.c
index 0570fc62..65c31b64 100644
--- a/html.c
+++ b/html.c
@@ -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},
diff --git a/html.h b/html.h
index 1e2b4cff..dda19b8a 100644
--- a/html.h
+++ b/html.h
@@ -51,6 +51,7 @@ enum htmltag {
TAG_SPAN,
TAG_VAR,
TAG_BR,
+ TAG_HR,
TAG_MARK,
TAG_MATH,
TAG_MROW,
diff --git a/tbl_html.c b/tbl_html.c
index a4463d2e..a8a71c63 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -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)