Fix layout of standalone <br>.

svn path=/trunk/netsurf/; revision=2849
This commit is contained in:
James Bursa 2006-08-14 23:05:08 +00:00
parent 5295d21743
commit 304616a797

View File

@ -817,7 +817,7 @@ bool layout_inline_container(struct box *inline_container, int width,
has_text_children = false;
for (c = inline_container->children; c; c = c->next)
if (!c->object && c->text && c->length)
if ((!c->object && c->text && c->length) || c->type == BOX_BR)
has_text_children = true;
for (c = inline_container->children; c; ) {