avoid double printout on short tags - xml2tsv - a simple xml-to-tsv converter, based on xmlparser
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 11b4f557a5927fdc9277a071f4c9bcc76cf725df
(DIR) parent c974d52007f0362f455b6a544e1ff2f14929a9ee
(HTM) Author: KatolaZ <katolaz@freaknet.org>
Date: Sun, 5 Jan 2020 15:06:56 +0000
avoid double printout on short tags
Diffstat:
M xml2tsv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/xml2tsv.c b/xml2tsv.c
@@ -212,10 +212,11 @@ xmltagend(XMLParser *x, const char *t, size_t tl, int isshort)
fprintf(stderr, "Error: tag-end '%s' closes tag '%s'\n", t, tag);
}
- if (isshort) {
+/* if (isshort) {
printf("\n");
print_cur_str(stdout, &st);
}
+*/
}
void
@@ -232,7 +233,6 @@ xmltagstart(XMLParser *x, const char *t, size_t tl)
void
xmltagstartparsed(XMLParser *x, const char *t, size_t tl, int isshort)
{
- /* printf("inside tagstartparsed\n"); */
}
int