diff options
author | KatolaZ <katolaz@freaknet.org> | 2021-12-08 22:24:31 +0000 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2021-12-08 22:24:31 +0000 |
commit | e45f9c38cbcc4c544f0107d1abc79f4e1e039413 (patch) | |
tree | 9a150620a6336f602ded9869c42b53b73969ea2a | |
parent | df38d2270241927e5436a0bc36ffb99044a8f4fb (diff) |
-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); |