mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1666 Fix errors in CommandFile parsing for space between argname and "="
This commit is contained in:
@@ -41,8 +41,6 @@ void RicfFieldReader<QString>::readFieldData(QString& fieldValue, QTextStream& i
|
||||
if ( currentChar == QChar('"') ) // End Quote
|
||||
{
|
||||
// Reached end of string
|
||||
// Read and eat , or ) ?
|
||||
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -59,7 +59,21 @@ void RicfObjectCapability::readFields(QTextStream& inputStream, caf::PdmObjectFa
|
||||
{
|
||||
QChar currentChar;
|
||||
inputStream >> currentChar;
|
||||
if ( currentChar.isSpace() || currentChar == QChar('=') )
|
||||
if ( currentChar.isSpace() )
|
||||
{
|
||||
// Must skip to, and read "="
|
||||
|
||||
inputStream.skipWhiteSpace();
|
||||
inputStream >> currentChar;
|
||||
|
||||
if ( currentChar != QChar('=') )
|
||||
{
|
||||
// Error message: Missing "=" after argument name
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ( currentChar == QChar('=') )
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user