mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Minor code reordering.
This commit is contained in:
parent
279f2bec93
commit
37ec65247d
@ -517,16 +517,16 @@ skip_table(unsigned char *html, unsigned char *eof)
|
|||||||
html++;
|
html++;
|
||||||
|
|
||||||
if (html >= eof) return eof;
|
if (html >= eof) return eof;
|
||||||
|
|
||||||
if (!namelen) continue;
|
if (!namelen) continue;
|
||||||
|
|
||||||
if (*name == '/') {
|
if (*name == '/') {
|
||||||
closing_tag = 1;
|
closing_tag = 1;
|
||||||
name++; namelen--;
|
name++; namelen--;
|
||||||
if (!namelen) continue;
|
if (!namelen) continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!strlcasecmp(name, namelen, "TABLE", 5)) {
|
if (!strlcasecmp(name, namelen, "TABLE", 5)) {
|
||||||
if (!closing_tag) {
|
if (!closing_tag) {
|
||||||
level++;
|
level++;
|
||||||
@ -597,11 +597,12 @@ see:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!namelen) goto see;
|
if (!namelen) goto see;
|
||||||
|
|
||||||
if (name[0] == '/') {
|
if (name[0] == '/') {
|
||||||
name++; namelen--;
|
namelen--;
|
||||||
if (!namelen) goto see;
|
if (!namelen) goto see;
|
||||||
closing_tag = 1;
|
name++;
|
||||||
|
closing_tag = 1;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
closing_tag = 0;
|
closing_tag = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user