diff --git a/base/src/com/google/idea/blaze/base/toolwindow/ConsoleView.java b/base/src/com/google/idea/blaze/base/toolwindow/ConsoleView.java index 30ecf184f17..d14a06e1c9a 100644 --- a/base/src/com/google/idea/blaze/base/toolwindow/ConsoleView.java +++ b/base/src/com/google/idea/blaze/base/toolwindow/ConsoleView.java @@ -237,19 +237,17 @@ void println(PrintOutput output) { } private void println(String text, OutputType outputType) { - if (outputType == OutputType.PROCESS) { - text = text.stripTrailing(); - } - ansiEscapeDecoder.escapeText( text, outputType == OutputType.ERROR ? ProcessOutputTypes.STDERR : ProcessOutputTypes.STDOUT, (t, k) -> consoleView.print(t, ConsoleViewContentType.getConsoleViewType(k))); - consoleView.print( - "\n", - outputType == OutputType.ERROR - ? ConsoleViewContentType.ERROR_OUTPUT - : ConsoleViewContentType.NORMAL_OUTPUT); + if (outputType != OutputType.PROCESS) { + consoleView.print( + "\n", + outputType == OutputType.ERROR + ? ConsoleViewContentType.ERROR_OUTPUT + : ConsoleViewContentType.NORMAL_OUTPUT); + } } public void printHyperlink(String text, HyperlinkInfo hyperlinkInfo) {