diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-01-03 16:52:16 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2020-01-03 16:29:30 +0000 |
commit | 0fe049559d88b204e73332e205caa8c5936985d6 (patch) | |
tree | db38306864dce87f842d51f427d167dbcc269537 /xml2tsv.c | |
parent | 8cf4ed89a038cae37878fead482aec23a9755e9e (diff) |
improve output when a tag contains a shorttag
for example:
<root><p>test file<br/>abc</p></root>
Diffstat (limited to 'xml2tsv.c')
-rw-r--r-- | xml2tsv.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |