From 7743c2946a33c2dcd5d1bdf42c57c2fab031aa3b Mon Sep 17 00:00:00 2001 From: Philipp Smorygo Date: Mon, 16 May 2016 12:17:38 +0300 Subject: [PATCH] OC-13555 Fix AppCodeGenerateTest: testEncode1 and testCopy1 --- .../lang-impl/src/com/intellij/psi/formatter/FormatterUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/psi/formatter/FormatterUtil.java b/platform/lang-impl/src/com/intellij/psi/formatter/FormatterUtil.java index 185ef9a481de..4b6e96fcc1c7 100644 --- a/platform/lang-impl/src/com/intellij/psi/formatter/FormatterUtil.java +++ b/platform/lang-impl/src/com/intellij/psi/formatter/FormatterUtil.java @@ -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 {