1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Clearify code a little

This commit is contained in:
Jonas Fonseca 2006-01-09 01:24:38 +01:00 committed by Jonas Fonseca
parent 5808b4ae0c
commit 27283098f4

View File

@ -803,11 +803,14 @@ start_element(struct element_info *ei,
if (e->type < ELEMENT_KILLABLE) break; if (e->type < ELEMENT_KILLABLE) break;
if (is_block_element(e) || is_inline_element(ei)) break; if (is_block_element(e) || is_inline_element(ei)) break;
} }
} else foreach (e, html_context->stack) { } else {
if (is_block_element(e) && is_inline_element(ei)) break; foreach (e, html_context->stack) {
if (e->type < ELEMENT_KILLABLE) break; if (is_block_element(e) && is_inline_element(ei)) break;
if (!strlcasecmp(e->name, e->namelen, name, namelen)) break; if (e->type < ELEMENT_KILLABLE) break;
if (!strlcasecmp(e->name, e->namelen, name, namelen)) break;
}
} }
if (!strlcasecmp(e->name, e->namelen, name, namelen)) { if (!strlcasecmp(e->name, e->namelen, name, namelen)) {
while (e->prev != (void *) &html_context->stack) while (e->prev != (void *) &html_context->stack)
kill_html_stack_item(html_context, e->prev); kill_html_stack_item(html_context, e->prev);