improve output when a tag contains a shorttag - xml2tsv - a simple xml-to-tsv converter, based on xmlparser DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 0fe049559d88b204e73332e205caa8c5936985d6 DIR parent 8cf4ed89a038cae37878fead482aec23a9755e9e HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 3 Jan 2020 16:52:16 +0100 improve output when a tag contains a shorttag for example: <root><p>test file<br/>abc</p></root> Diffstat: M xml2tsv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git 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