diff options
Diffstat (limited to 'xml2tsv.c')
-rw-r--r-- | xml2tsv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")<strlen(d) && !stack_peek(&st)->ref)) && emitsep){ + putchar(SEP); emitsep = FALSE; } quote_print(d); |