OC-13555 Fix AppCodeGenerateTest: testEncode1 and testCopy1

This commit is contained in:
Philipp Smorygo
2016-05-16 12:21:15 +03:00
parent 5dbf5c7add
commit 7743c2946a
@@ -378,7 +378,7 @@ public class FormatterUtil {
if (treePrev.getElementType() == TokenType.WHITE_SPACE) {
return treePrev;
}
else if (treePrev.getTextLength() == 0) {
else if (treePrev.getTextLength() == 0 && !treePrev.getElementType().isLeftBound()) {
return getWsCandidate(treePrev);
}
else {