From b60ae89a6c7a7ee033f195ab1bfafd761736773c Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Thu, 18 May 2017 01:02:48 +0200 Subject: [PATCH] No space between line number and code when exporting found occurrences to text file (IDEA-157440) --- .../src/com/intellij/usages/impl/ExporterToTextFile.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/usageView/src/com/intellij/usages/impl/ExporterToTextFile.java b/platform/usageView/src/com/intellij/usages/impl/ExporterToTextFile.java index 6b2c2e61d83b..84c3f171114c 100644 --- a/platform/usageView/src/com/intellij/usages/impl/ExporterToTextFile.java +++ b/platform/usageView/src/com/intellij/usages/impl/ExporterToTextFile.java @@ -103,8 +103,11 @@ public class ExporterToTextFile implements com.intellij.ide.ExporterToTextFile { protected void appendUsageNodeText(StringBuilder buf, UsageNode node) { TextChunk[] chunks = node.getUsage().getPresentation().getText(); + int chunkCount = 0; for (TextChunk chunk : chunks) { + if (chunkCount == 1) buf.append(" "); // add space after line number buf.append(chunk.getText()); + ++chunkCount; } }