diff options
author | James Bursa <james@netsurf-browser.org> | 2005-06-07 22:52:56 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-06-07 22:52:56 +0000 |
commit | 84f274f2158f14f6078ea2336f4aa08d2d3fb4c6 (patch) | |
tree | 3560cf80474f0c621176428826cf7a45120d3dfb /render/box_construct.c | |
parent | c0fce75798460fd00ae9f84bf4c9613558ee9324 (diff) | |
download | netsurf-84f274f2158f14f6078ea2336f4aa08d2d3fb4c6.tar.gz netsurf-84f274f2158f14f6078ea2336f4aa08d2d3fb4c6.tar.bz2 |
[project @ 2005-06-07 22:52:56 by bursa]
Fix bug causing an extra line to be inserted for <br> at the end of a paragraph.
svn path=/import/netsurf/; revision=1746
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |