diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2024-06-30 09:59:48 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2024-06-30 09:59:48 +0200 |
commit | 1f6dfac83e8325a42dc5faa2e31cc25593acdfc8 (patch) | |
tree | 3651c4a82bb4e2f1c30fbf5f84bfed4240121326 | |
parent | 1f76c85ab88f0a1a36c7769a0b8ac13b9072105b (diff) |
improve parsing whitespace after end tag names
Simplified test-case:
https://git.codemadness.org/sfeed_tests/commit/e091160c3125322193bd8f27691c87eaa48cfc93.html
-rw-r--r-- | xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -333,6 +333,8 @@ xml_parse(XMLParser *x) else if (c == '>' || ISSPACE(c)) { x->tag[x->taglen] = '\0'; if (isend) { /* end tag, starts with </ */ + while (c != '>' && c != EOF) /* skip until > */ + c = GETNEXT(); if (x->xmltagend) x->xmltagend(x, x->tag, x->taglen, x->isshorttag); x->tag[0] = '\0'; |