diff options
-rw-r--r-- | parser.c | 7 | ||||
-rw-r--r-- | result/noent/att10 | 2 |
2 files changed, 7 insertions, 2 deletions
@@ -3705,7 +3705,12 @@ xmlParseAttValueComplex(xmlParserCtxtPtr ctxt, int *attlen, int normalize) { if (rep != NULL) { current = rep; while (*current != 0) { /* non input consuming */ - buf[len++] = *current++; + if ((*current == 0xD) || (*current == 0xA) || + (*current == 0x9)) { + buf[len++] = 0x20; + current++; + } else + buf[len++] = *current++; if (len > buf_size - 10) { growBuffer(buf, 10); } diff --git a/result/noent/att10 b/result/noent/att10 index cc1c6b0a..07f0096c 100644 --- a/result/noent/att10 +++ b/result/noent/att10 @@ -10,7 +10,7 @@ ]> <doc> <tst a="xyz" b=" xyz"/> -<tst a=" A B " b=" A B "/> +<tst a="A B" b=" A B "/> <tst a=" A B " b=" A B "/> <tst a="x y" b=" x y "/> <tst a="a b" b=" a b "/> |