diff --git a/src/plugins/projectexplorer/outputwindow.cpp b/src/plugins/projectexplorer/outputwindow.cpp index 853e94a250ae3f761ae4c391ce9465622712495c..c4839ba7853c68e79c600eb36ac3b6d1a161b88d 100644 --- a/src/plugins/projectexplorer/outputwindow.cpp +++ b/src/plugins/projectexplorer/outputwindow.cpp @@ -335,7 +335,14 @@ void OutputWindow::appendOutput(const QString &out) void OutputWindow::appendOutputInline(const QString &out) { moveCursor(QTextCursor::End); - insertPlainText(out); + int newline = out.indexOf(QLatin1Char('\n')); + if (newline < 0) { + insertPlainText(out); + return; + } + insertPlainText(out.left(newline)); + if (newline < out.length()) + appendPlainText(out.mid(newline+1)); } void OutputWindow::insertLine()