diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-17 15:16:26 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:52 +0100 |
commit | 880a2fc8ad25bc4a1e64bb600f4605dd3d864eaa (patch) | |
tree | eafef4f5bee7a92eb52b0f972a4c23aac435d369 /source/html | |
parent | 8b54b9faf55996ade4dff112aa1b6fa1e086ef6f (diff) | |
download | mupdf-880a2fc8ad25bc4a1e64bb600f4605dd3d864eaa.tar.xz |
html: Insert block boxes for list-item nodes.
TODO: bullets and numbers
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/layout.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 } } |