Introduction
Introduction Statistics Contact Development Disclaimer Help
fix possible regression: set tag defaults also - webdump - HTML to plain-text c…
git clone git://git.codemadness.org/webdump
Log
Files
Refs
README
LICENSE
---
commit a0118e672fd3fa0004ccf2850eaef4ec4bc6fb39
parent 115f7e68eeccd7f1030fc631c52bab35692c6973
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 23 May 2024 20:20:42 +0200
fix possible regression: set tag defaults also
Diffstat:
M webdump.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/webdump.c b/webdump.c
@@ -1994,6 +1994,8 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
cur = &nodes[curnode];
memset(cur, 0, sizeof(*cur)); /* clear / reset node */
/* tag defaults */
+ cur->tag.displaytype = DisplayInline;
+ cur->tag.name = cur->tagname; /* assign fixed-size buffer */
strlcpy(cur->tagname, t, sizeof(cur->tagname));
/* force to lowercase */
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.