Utils: Filter adjacent carriage returns in OutputFormatter

It shouldn't change the semantics, and it helps on some systems with
strange line endings.

Fixes: QTCREATORBUG-24556
Change-Id: I8158ddda458e5500bce6ce7b9ff4d5d981f88d7d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Christian Kandeler
2020-11-30 15:11:30 +01:00
parent 7048a89fa1
commit cb2a241e02
2 changed files with 7 additions and 2 deletions

View File

@@ -627,7 +627,7 @@ private:
void Internal::CorePlugin::testOutputFormatter()
{
const QString input =
"B to be handled by B\r\n"
"B to be handled by B\r\r\n"
"not to be handled\n\n\n\n"
"A to be handled by A\n"
"continuation for A\r\n"