From e45f9c38cbcc4c544f0107d1abc79f4e1e039413 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 8 Dec 2021 22:24:31 +0000 Subject: fix the condition to emit SEP in xmldata --- xml2tsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xml2tsv.c') diff --git a/xml2tsv.c b/xml2tsv.c index 27984bc..aea5751 100644 --- a/xml2tsv.c +++ b/xml2tsv.c @@ -176,8 +176,8 @@ xmlcdata(XMLParser *x, const char *d, size_t dl) void xmldata(XMLParser *x, const char *d, size_t dl) { - if (stack_peek(&st) || (strcspn(d, " \t\n") && emitsep)){ - putchar(SEP); + if ((strcspn(d, " \t\n") || (strspn(d, " \t\n")ref)) && emitsep){ + putchar(SEP); emitsep = FALSE; } quote_print(d); -- cgit v1.2.3