From 880a2fc8ad25bc4a1e64bb600f4605dd3d864eaa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 17 Nov 2014 15:16:26 +0100 Subject: html: Insert block boxes for list-item nodes. TODO: bullets and numbers --- source/html/layout.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/html') diff --git a/source/html/layout.c b/source/html/layout.c index 2cb2ced4..3439ccdb 100644 --- a/source/html/layout.c +++ b/source/html/layout.c @@ -242,6 +242,10 @@ static void generate_boxes(html_document *doc, fz_xml *node, struct box *top, st { top = insert_block_box(ctx, box, top); } + else if (display == DIS_LIST_ITEM) + { + top = insert_block_box(ctx, box, top); + } else if (display == DIS_INLINE) { insert_inline_box(ctx, box, top); @@ -256,6 +260,7 @@ static void generate_boxes(html_document *doc, fz_xml *node, struct box *top, st generate_boxes(doc, fz_xml_down(node), box, rule, &style); compute_style(doc, &box->style, &style); + // TODO: remove empty flow boxes } } -- cgit v1.2.3