| @@ -617,9 +617,17 @@ void XmlDocument::readChildElements (XmlElement& parent) | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| for (;;) | |||||
| for (;; ++input) | |||||
| { | { | ||||
| const juce_wchar nextChar = *input; | |||||
| juce_wchar nextChar = *input; | |||||
| if (nextChar == '\r') | |||||
| { | |||||
| nextChar = '\n'; | |||||
| if (input[1] == '\n') | |||||
| continue; | |||||
| } | |||||
| if (nextChar == '<' || nextChar == '&') | if (nextChar == '<' || nextChar == '&') | ||||
| break; | break; | ||||
| @@ -633,7 +641,6 @@ void XmlDocument::readChildElements (XmlElement& parent) | |||||
| textElementContent.appendUTF8Char (nextChar); | textElementContent.appendUTF8Char (nextChar); | ||||
| contentShouldBeUsed = contentShouldBeUsed || ! CharacterFunctions::isWhitespace (nextChar); | contentShouldBeUsed = contentShouldBeUsed || ! CharacterFunctions::isWhitespace (nextChar); | ||||
| ++input; | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||