summaryrefslogtreecommitdiffstats
path: root/tbl_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-11-25 21:17:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-11-25 21:17:34 +0000
commiteab7e55d6c1099a40048c815bfa482b6850f5fb9 (patch)
tree32365f4643b8a0faab941995705143a1638a7fc1 /tbl_html.c
parent059731525cc9a54258e9e3b825e28777a212ff15 (diff)
downloadmandoc-eab7e55d6c1099a40048c815bfa482b6850f5fb9.tar.gz
Let cells containing nothing but \^ extend the cell above.
Missing feature reported by Pali dot Rohar at gmail dot com.
Diffstat (limited to 'tbl_html.c')
-rw-r--r--tbl_html.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/tbl_html.c b/tbl_html.c
index 4ace9e09..8d408211 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -126,13 +126,18 @@ print_tbl(struct html *h, const struct tbl_span *sp)
default:
for (dp = sp->first; dp != NULL; dp = dp->next) {
print_stagq(h, tt);
- switch (dp->layout->pos) {
- case TBL_CELL_SPAN:
- case TBL_CELL_DOWN:
+
+ /*
+ * Do not generate <td> elements for continuations
+ * of spanned cells. Larger <td> elements covering
+ * this space were already generated earlier.
+ */
+
+ if (dp->layout->pos == TBL_CELL_SPAN ||
+ dp->layout->pos == TBL_CELL_DOWN ||
+ (dp->string != NULL &&
+ strcmp(dp->string, "\\^") == 0))
continue;
- default:
- break;
- }
/* Determine the attribute values. */