forked from qt-creator/qt-creator
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:
@@ -428,7 +428,7 @@ void VcsOutputWindow::append(const QString &text, MessageStyle style, bool silen
|
||||
|
||||
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)
|
||||
|
Reference in New Issue
Block a user