diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-25 21:17:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-11-25 21:17:34 +0000 |
commit | eab7e55d6c1099a40048c815bfa482b6850f5fb9 (patch) | |
tree | 32365f4643b8a0faab941995705143a1638a7fc1 /tbl_html.c | |
parent | 059731525cc9a54258e9e3b825e28777a212ff15 (diff) | |
download | mandoc-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.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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. */ |