summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-01-03 16:52:16 +0100
committerKatolaZ <katolaz@freaknet.org>2020-01-03 16:29:30 +0000
commit0fe049559d88b204e73332e205caa8c5936985d6 (patch)
treedb38306864dce87f842d51f427d167dbcc269537
parent8cf4ed89a038cae37878fead482aec23a9755e9e (diff)
improve output when a tag contains a shorttag
for example: <root><p>test file<br/>abc</p></root>
-rw-r--r--xml2tsv.c6
1 files changed, 5 insertions, 1 deletions
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