mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11430 Add trimming of header words to identify CSV as line based
This commit is contained in:
@@ -288,7 +288,9 @@ RifCsvUserDataParser::CsvLayout RifCsvUserDataParser::determineCsvLayout()
|
||||
{
|
||||
firstLine = dataStream->readLine();
|
||||
if ( firstLine.isEmpty() ) continue;
|
||||
headers = firstLine.split( ';' );
|
||||
|
||||
headers = RifFileParseTools::splitLineAndTrim( firstLine, ";" );
|
||||
|
||||
if ( headers.size() < 3 || headers.size() > 5 ) continue;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user