Remove leading whitespace from command lines in VS projects

Change-Id: I9888e5cce4fe82a27c823e7a0d345f1af839ca97
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Joerg Bornemann 2017-05-22 16:37:09 +02:00
parent d67410c615
commit 9609e2945c

View File

@ -320,7 +320,7 @@ triState operator!(const triState &rhs)
QStringList VCToolBase::fixCommandLine(const QString &input)
{
// The splitting regexp is a bit bizarre for backwards compat reasons (why else ...).
return input.split(QRegExp(QLatin1String("\n\t|\r\\\\h|\r\n")));
return input.split(QRegExp(QLatin1String("(\n\t|\r\\\\h|\r\n)\\s*")));
}
static QString vcCommandSeparator()