allow initial comments in dat-files.
Build and Deploy Documentation / build-and-deploy (push) Successful in 31s
Build and Deploy Documentation / build-and-deploy (push) Successful in 31s
This commit is contained in:
@@ -594,7 +594,12 @@ PmuppCollection PParamDataHandler::ReadColumnParamFile(const QString fln, bool &
|
||||
run.SetName(fln);
|
||||
|
||||
// read header information
|
||||
// step over initial comments
|
||||
line = in.readLine();
|
||||
while (line.isEmpty() || line.startsWith("%") || line.startsWith("#"))
|
||||
line = in.readLine();
|
||||
|
||||
// handle header
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
|
||||
token = line.split(QRegExp("\\s+"), QString::SkipEmptyParts);
|
||||
#else
|
||||
|
||||
@@ -702,7 +702,12 @@ PmuppCollection PParamDataHandler::ReadColumnParamFile(const QString fln, bool &
|
||||
run.SetName(fln);
|
||||
|
||||
// read header information
|
||||
// step over initial comments
|
||||
line = in.readLine();
|
||||
while (line.isEmpty() || line.startsWith("%") || line.startsWith("#"))
|
||||
line = in.readLine();
|
||||
|
||||
// handle header
|
||||
token = line.split(QRegularExpression("\\s+"), Qt::SkipEmptyParts);
|
||||
|
||||
QVector<QString> headerInfo;
|
||||
|
||||
Reference in New Issue
Block a user