[glom] advance_field(): Do not skip characters after the ".
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom] advance_field(): Do not skip characters after the ".
- Date: Fri, 10 Jul 2009 13:11:41 +0000 (UTC)
commit 1c59fdb686ba93bbf6b9a5015177b9d7b2b734f1
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jul 10 15:11:28 2009 +0200
advance_field(): Do not skip characters after the ".
ChangeLog | 5 +++++
glom/dialog_import_csv.cc | 4 +---
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5c4e9e2..09a3f52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-07-10 Murray Cumming <murrayc murrayc com>
+ * glom/dialog_import_csv.cc: advance_field(): Do not skip characters after
+ the ".
+
+2009-07-10 Murray Cumming <murrayc murrayc com>
+
* glom/dialog_import_csv.cc: on_idle_parse(): Ignore newlines in quotes when
dividing the input into "lines" to give to handle_line().
diff --git a/glom/dialog_import_csv.cc b/glom/dialog_import_csv.cc
index 2aabd3a..e816ea5 100644
--- a/glom/dialog_import_csv.cc
+++ b/glom/dialog_import_csv.cc
@@ -85,9 +85,7 @@ static Glib::ustring::const_iterator advance_field(const Glib::ustring::const_it
{
//This is "" so it's not an end quote. Just add one quote:
field += c;
- ++walk; //Skip the first "
- if(walk != end)
- ++walk; //Skip the second " because we added it here.
+ ++walk; //Skip the second ".
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]