No space between line number and code when exporting found occurrences to text file (IDEA-157440)

This commit is contained in:
Maxim.Mossienko
2017-05-18 01:04:03 +02:00
parent 29c484ca42
commit b60ae89a6c
@@ -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;
}
}