mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Fix treatment of spaces when importing CSV files without quotes
When importing a CSV file without no quote characters no spaces were imported. So this... a,b b,c ...would become... a,bb,c Fix this by not checking for being in quote mode when not having configured a quote char anyway.
This commit is contained in:
@@ -923,7 +923,7 @@ QStringList DBBrowserDB::decodeCSV(const QString & csvfilename, char sep, char q
|
||||
} else if (c==32) {
|
||||
|
||||
// Only append blanks if we are inside of quotes
|
||||
if (inquotemode) {
|
||||
if (inquotemode || quote == 0) {
|
||||
current.append(c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user