summaryrefslogtreecommitdiffstats
path: root/tbl_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-11 14:12:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-11 14:12:01 +0000
commitfa73a21290e351913eadd2b70b4471fd30829483 (patch)
treecb524df5813e538c91ca612c4110c9e4291a7eb9 /tbl_html.c
parentc68f7a36a22b06ab0bb6afcd32d531d893abbc57 (diff)
downloadmandoc-fa73a21290e351913eadd2b70b4471fd30829483.tar.gz
Add support for "^" vertical spanners. Unlike GNU tbl, raise
error-class messages when data is being ignored by specifying it in "^" cells (either as-is or in blocks). Also note again that horizontal spanners aren't really supported...
Diffstat (limited to 'tbl_html.c')
-rw-r--r--tbl_html.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/tbl_html.c b/tbl_html.c
index e662136a..7fafe35a 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -104,10 +104,18 @@ print_tbl(struct html *h, const struct tbl_span *sp)
PAIR_STYLE_INIT(&tag, h);
tt = print_otag(h, TAG_TD, 1, &tag);
- if (dp && dp->string)
- print_text(h, dp->string);
- if (dp)
+ if (dp) {
+ switch (dp->layout->pos) {
+ case (TBL_CELL_DOWN):
+ break;
+ default:
+ if (NULL == dp->string)
+ break;
+ print_text(h, dp->string);
+ break;
+ }
dp = dp->next;
+ }
print_tagq(h, tt);
}