Mercurial > hg > svcore
diff data/fileio/CSVFileReader.cpp @ 261:2fc6f3829f04 sv1-1.0rc1
* Ignore blank lines in CSV-type file import
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 14:52:24 +0000 |
parents | dc46851837d6 |
children | 7336fe3a7caa |
line wrap: on
line diff
--- a/data/fileio/CSVFileReader.cpp Mon Apr 30 14:31:39 2007 +0000 +++ b/data/fileio/CSVFileReader.cpp Mon Apr 30 14:52:24 2007 +0000 @@ -128,7 +128,7 @@ while (!in.atEnd()) { QString line = in.readLine().trimmed(); - if (line.startsWith("#")) continue; + if (line.startsWith("#") || line.trimmed() == "") continue; QStringList list = line.split(separator);