improve parsing whitespace after end tag names - xmlparser - XML parser | |
git clone git://git.codemadness.org/xmlparser | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5f875a2e8c6ea50252807924400c7d125505f206 | |
parent 879fe9b0203550755f7b70d8c0061b443eebb948 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 30 Jun 2024 10:01:07 +0200 | |
improve parsing whitespace after end tag names | |
Simplified test-case: | |
https://git.codemadness.org/sfeed_tests/commit/e091160c3125322193bd8f27691c87ea… | |
Diffstat: | |
M xml.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/xml.c b/xml.c | |
@@ -368,6 +368,8 @@ xml_parse(XMLParser *x) | |
else if (c == '>' || ISSPACE(c)) { | |
x->tag[x->taglen] = '\0'; | |
if (isend) { /* end tag, start… | |
+ while (c != '>' && c !… | |
+ c = GETNEXT(); | |
if (x->xmltagend) | |
x->xmltagend(x… | |
x->tag[0] = '\0'; |