Merge branch '5.1.x'

This commit is contained in:
Sam Brannen
2019-05-24 10:18:25 +02:00
2 changed files with 20 additions and 1 deletions

View File

@@ -234,7 +234,7 @@ public abstract class ScriptUtils {
"Missing block comment end delimiter: " + blockCommentEndDelimiter, resource);
}
}
else if (c == ' ' || c == '\n' || c == '\t') {
else if (c == ' ' || c == '\r' || c == '\n' || c == '\t') {
// Avoid multiple adjacent whitespace characters
if (sb.length() > 0 && sb.charAt(sb.length() - 1) != ' ') {
c = ' ';