Revert "split xml text out of tags on whitespaces"

This reverts commit c003f3c
This commit is contained in:
Dennis Ushakov
2017-10-12 22:44:04 +03:00
parent 9399676ce5
commit 103b05cebf
@@ -84,12 +84,7 @@ public class HtmlParsing {
xmlText = startText(xmlText);
parseReference();
}
else if (tt == XmlTokenType.XML_REAL_WHITE_SPACE) {
error = flushError(error);
xmlText = terminateText(xmlText);
advance();
}
else if (tt == XmlTokenType.XML_DATA_CHARACTERS) {
else if (tt == XmlTokenType.XML_REAL_WHITE_SPACE || tt == XmlTokenType.XML_DATA_CHARACTERS) {
error = flushError(error);
xmlText = startText(xmlText);
advance();
@@ -288,9 +283,6 @@ public class HtmlParsing {
error(XmlErrorMessages.message("xml.parsing.closing.tag.is.not.done"));
}
if (hasTags()) doneTag(myTagMarkersStack.peek());
} else if (token() == XmlTokenType.XML_REAL_WHITE_SPACE && !hasTags()) {
xmlText = terminateText(xmlText);
advance();
} else {
xmlText = startText(xmlText);
advance();