From c55312cd12a98b785c3fcb600c21a78c6704d667 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 11 Jan 2011 14:12:01 +0000 Subject: 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... --- tbl_html.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'tbl_html.c') diff --git a/tbl_html.c b/tbl_html.c index 7594dfc9..ebad7c77 100644 --- a/tbl_html.c +++ b/tbl_html.c @@ -1,4 +1,4 @@ -/* $Id: tbl_html.c,v 1.5 2011/01/06 12:31:39 kristaps Exp $ */ +/* $Id: tbl_html.c,v 1.6 2011/01/11 14:12:01 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -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); } -- cgit v1.2.3-56-ge451