From 84f274f2158f14f6078ea2336f4aa08d2d3fb4c6 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 7 Jun 2005 22:52:56 +0000 Subject: [project @ 2005-06-07 22:52:56 by bursa] Fix bug causing an extra line to be inserted for
at the end of a paragraph. svn path=/import/netsurf/; revision=1746 --- render/box_construct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index 961fc7f17..a07869d8f 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -337,7 +337,7 @@ bool box_construct_element(xmlNode *n, struct content *content, if (box->type == BOX_INLINE || box->type == BOX_BR) { /* inline box: add to tree and recurse */ box_add_child(*inline_container, box); - if (convert_children) { + if (convert_children && n->children) { for (c = n->children; c; c = c->next) if (!convert_xml_to_box(c, content, style, parent, inline_container, -- cgit v1.2.3