webdump

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/webdump.git
Log | Files | Refs | README | LICENSE

commit f0d80eb0978a24a020847aa15f1f5f2cd8b4e469
parent d8b340df62971844bafc357d981d9c03af741742
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 22 Sep 2019 20:16:57 +0200

man page: remove copy-pasta line, prefix "DEBUG:" for debug line

Diffstat:
webdump.1 | 1-
webdump.c | 4++--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/webdump.1 b/webdump.1 @@ -14,7 +14,6 @@ It renders and writes the output as plain-text to stdout. A .Ar baseurl can be specified if the links in the feed are relative urls. -It is recommended to always have absolute urls in your feeds. .Sh SEE ALSO .Xr ftp 1 .Sh AUTHORS diff --git a/webdump.c b/webdump.c @@ -494,7 +494,7 @@ xmltagstart(XMLParser *x, const char *t, size_t tl) struct node *cur; int i; -// printf("start of tag: %s\n", t); +// printf("DEBUG: start of tag: %s\n", t); if (curnode >= MAX_DEPTH - 2) errx(1, "max tag depth reached: %d\n", curnode); @@ -511,7 +511,7 @@ xmltagstart(XMLParser *x, const char *t, size_t tl) for (i = 0; i < sizeof(tags) / sizeof(*tags); i++) { if (!strcasecmp(tags[i].tag, t)) { cur->displaytype = tags[i].displaytype; -// printf("match on tag: %s == %s, displaytype: %d\n", +// printf("DEBUG: match on tag: %s == %s, displaytype: %d\n", // tags[i].tag, t, cur->displaytype); break; }