diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java b/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java index 53008ebf6e2..d4157aebf0d 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java @@ -107,7 +107,8 @@ public abstract class KtParsingTestCase extends KtPlatformLiteFixture { } protected static String toParseTreeText(PsiElement file, boolean skipSpaces, boolean printRanges) { - return DebugUtil.psiToString(file, skipSpaces, printRanges); + boolean showWhitespaces = !skipSpaces; + return DebugUtil.psiToString(file, showWhitespaces, printRanges); } protected String loadFile(@NonNls @TestDataFile String name) throws IOException {