fix: correct line break minification

fixes #54
This commit is contained in:
Josh Johnson 2016-05-17 22:36:14 -04:00
parent 88ac5d9a08
commit b55c314aa4

View File

@ -157,7 +157,11 @@ export class XmlFormatter {
inCdata = true;
}
else if (char == ']' && (xml.substr(i, 3) == ']]>' || xml.substr(i, 3) == '-->')) {
else if (char == ']' && (xml.substr(i, 3) == ']]>')) {
inCdata = false;
}
else if (char == '-' && (xml.substr(i, 3) == '-->')) {
inCdata = false;
}