Introduction
Introduction Statistics Contact Development Disclaimer Help
bump LICENSE - webdump - HTML to plain-text converter for webpages
git clone git://git.codemadness.org/webdump
Log
Files
Refs
README
LICENSE
---
commit 0f038037edcb9d876ced704462f8daf4f2d2c4b2
parent 473563a6c16c683af52cb791fbbfdfb997f758bb
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 22 May 2024 18:45:53 +0200
bump LICENSE
and improve a few comments
Diffstat:
M LICENSE | 2 +-
M webdump.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/LICENSE b/LICENSE
@@ -1,6 +1,6 @@
ISC License
-Copyright (c) 2017-2023 Hiltjo Posthuma <[email protected]>
+Copyright (c) 2017-2024 Hiltjo Posthuma <[email protected]>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
diff --git a/webdump.c b/webdump.c
@@ -1988,8 +1988,9 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
memset(cur, 0, sizeof(*cur)); /* clear / reset node */
/* tag defaults */
cur->tag.displaytype = DisplayInline;
- cur->tag.name = cur->tagname;
+ cur->tag.name = cur->tagname; /* assign fixed-size buffer */
strlcpy(cur->tagname, t, sizeof(cur->tagname));
+
/* force to lowercase */
for (s = cur->tagname; *s; s++)
*s = TOLOWER((unsigned char)*s);
@@ -1998,7 +1999,7 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
if (found)
memcpy(&(cur->tag), found, sizeof(*found));
- /* parent tag is hidden, so hide ourself too */
+ /* if parent tag is hidden then hide itself too */
if (curnode > 0 && (nodes[curnode - 1].tag.displaytype & DisplayNone))
cur->tag.displaytype |= DisplayNone;
}
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.