forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.4' into 4.5
Change-Id: I9b7cb3d845628abf69a73a279f5a79202c0976c2
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "utils/environment.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QRegularExpression>
|
||||
#include <QSettings>
|
||||
|
||||
namespace {
|
||||
@@ -172,8 +173,9 @@ void SdkManagerOutputParser::parsePackageListing(const QString &output)
|
||||
}
|
||||
};
|
||||
|
||||
foreach (QString outputLine, output.split('\n')) {
|
||||
MarkerTag marker = parseMarkers(outputLine);
|
||||
QRegularExpression delimiters("[\n\r]");
|
||||
foreach (QString outputLine, output.split(delimiters)) {
|
||||
MarkerTag marker = parseMarkers(outputLine.trimmed());
|
||||
|
||||
if (marker & SectionMarkers) {
|
||||
// Section marker found. Update the current section being parsed.
|
||||
|
||||
Reference in New Issue
Block a user