1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-14 14:44:32 -04:00

Minor code reordering.

This commit is contained in:
Laurent MONIN 2005-12-08 16:20:13 +01:00 committed by Laurent MONIN
parent 279f2bec93
commit 37ec65247d

View File

@ -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;