Tidy up where spaces were used for indentation.

svn path=/trunk/netsurf/; revision=5555
This commit is contained in:
Michael Drake 2008-10-13 12:30:23 +00:00
parent a5ac56655c
commit 7293b6f4bb

View File

@ -1268,10 +1268,14 @@ bool layout_inline_container(struct box *inline_container, int width,
for (c = inline_container->children; c; c = c->next) {
bool is_pre = false;
if (c->style)
is_pre = (c->style->white_space == CSS_WHITE_SPACE_PRE ||
c->style->white_space == CSS_WHITE_SPACE_PRE_LINE ||
c->style->white_space == CSS_WHITE_SPACE_PRE_WRAP);
if ((!c->object && c->text && (c->length || is_pre)) || c->type == BOX_BR)
is_pre = (c->style->white_space ==
CSS_WHITE_SPACE_PRE ||
c->style->white_space ==
CSS_WHITE_SPACE_PRE_LINE ||
c->style->white_space ==
CSS_WHITE_SPACE_PRE_WRAP);
if ((!c->object && c->text && (c->length || is_pre)) ||
c->type == BOX_BR)
has_text_children = true;
}