-/* $OpenBSD: html.c,v 1.145 2021/08/10 12:36:42 schwarze Exp $ */
+/* $OpenBSD: html.c,v 1.146 2021/09/09 14:45:18 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015, 2017-2021 Ingo Schwarze <schwarze@openbsd.org>
{"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},
-/* $OpenBSD: html.h,v 1.70 2020/04/18 20:28:46 schwarze Exp $ */
+/* $OpenBSD: html.h,v 1.71 2021/09/09 14:45:18 schwarze Exp $ */
/*
* Copyright (c) 2017, 2018, 2019, 2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
TAG_SPAN,
TAG_VAR,
TAG_BR,
+ TAG_HR,
TAG_MARK,
TAG_MATH,
TAG_MROW,
-/* $OpenBSD: tbl_html.c,v 1.31 2021/08/10 12:36:42 schwarze Exp $ */
+/* $OpenBSD: tbl_html.c,v 1.32 2021/09/09 14:45:18 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014,2015,2017,2018,2021 Ingo Schwarze <schwarze@openbsd.org>
"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)