mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5593 Keyword parser : Improve robustness
Skip empty lines. Return if line starting with an letter is detected, this is interpreted as a new keyword.
This commit is contained in:
@@ -1600,8 +1600,16 @@ void RifEclipseInputFileTools::readKeywordDataContent( QFile& data,
|
||||
|
||||
return;
|
||||
}
|
||||
else if ( line[0].isLetter() )
|
||||
{
|
||||
// If a letter is starting the line, this is a new keyword
|
||||
return;
|
||||
}
|
||||
|
||||
textContent->push_back( line );
|
||||
if ( !line.isEmpty() )
|
||||
{
|
||||
textContent->push_back( line );
|
||||
}
|
||||
|
||||
} while ( !data.atEnd() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user