VcsOutputWindow: Don't append \n when line ends with \r

Amends a2797ec80e

Fixes: QTCREATORBUG-27615
Change-Id: I5b2d2bc442696a1560a2af3dfe14e70a9c42cc88
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-09-09 13:18:05 +02:00
parent 181f9f276c
commit fa9008c7f8

View File

@@ -428,7 +428,7 @@ void VcsOutputWindow::append(const QString &text, MessageStyle style, bool silen
void VcsOutputWindow::appendError(const QString &text) void VcsOutputWindow::appendError(const QString &text)
{ {
append(text.endsWith('\n') ? text : text + '\n', Error, false); append((text.endsWith('\n') || text.endsWith('\r')) ? text : text + '\n', Error, false);
} }
void VcsOutputWindow::appendWarning(const QString &text) void VcsOutputWindow::appendWarning(const QString &text)