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:
parent
5808b4ae0c
commit
27283098f4
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user