mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:43:24 +00:00
Trim CSV lines on import
In practice this will sanitize Windows line terminations (discard the carriage return); Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
55582cf5d4
commit
76ce2b095b
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
|
|||
}
|
||||
|
||||
while (rows < 10 && !f.atEnd()) {
|
||||
QString currLine = f.readLine();
|
||||
QString currLine = f.readLine().trimmed();
|
||||
currColumns = currLine.split(separator);
|
||||
fileColumns.append(currColumns);
|
||||
rows += 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue