tuse field isvoid from the looked up tag (should be the same) - webdump - [FORK] git://git.codemadness.org/webdump
(HTM) git clone git://git.z3bra.org/webdump.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ff081bef0cfc66b4a5960996a0fc41dea868ac60
(DIR) parent c438bee21c66000911d88b01fc6c1b7024b50f18
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 10 Dec 2019 00:24:32 +0100
use field isvoid from the looked up tag (should be the same)
Diffstat:
M webdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/webdump.c b/webdump.c
t@@ -627,7 +627,7 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
/* ignore closing of void elements, like </br>, which is not allowed */
if ((found = findtag(t))) {
- if (!isshort && cur->tag.isvoid)
+ if (!isshort && found->isvoid)
return;
}