From 0fe049559d88b204e73332e205caa8c5936985d6 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 3 Jan 2020 16:52:16 +0100 Subject: improve output when a tag contains a shorttag for example:

test file
abc

--- xml2tsv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xml2tsv.c b/xml2tsv.c index 298d0c5..5725531 100644 --- a/xml2tsv.c +++ b/xml2tsv.c @@ -177,7 +177,11 @@ xmltagend(XMLParser *x, const char *t, size_t tl, int isshort) if (strcmp(t, tag)){ fprintf(stderr, "Error: tag-end '%s' closes tag '%s'", t, tag); } - /* printf("\n"); */ + + if (isshort) { + printf("\n"); + print_cur_str(stdout, &st); + } } void -- cgit v1.2.3