From 6fa7bc5637f387ba03ded98112beb7acacdda08e Mon Sep 17 00:00:00 2001 From: Olesya Smirnova Date: Mon, 17 Jan 2005 17:14:22 +0300 Subject: [PATCH] (no message) --- source/com/intellij/codeFormatting/general/FormatterUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/com/intellij/codeFormatting/general/FormatterUtil.java b/source/com/intellij/codeFormatting/general/FormatterUtil.java index 69a3902ba35d..fdbcba917145 100644 --- a/source/com/intellij/codeFormatting/general/FormatterUtil.java +++ b/source/com/intellij/codeFormatting/general/FormatterUtil.java @@ -45,7 +45,7 @@ public class FormatterUtil { while (wsCandidate != null && isSpaceTextElement(wsCandidate)) { result.append(wsCandidate.getText()); final TreeElement newValue = getWsCandidate(wsCandidate); - if (wsCandidate == newValue) break; + if (wsCandidate.getStartOffset() == newValue.getStartOffset()) break; wsCandidate = newValue; } return result.toString();