Sadless74 / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

Feed parsing doesn't deal with quoted values correctly when surrounded by spaces #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a quoted value is preceded by an extra space, it isn't treated as quoted:

value1, "value2, more", value3

is parsed into 4 values.

However, without the space, the value is parsed correctly:

value1,"value2, more", value3

This is coming from the python csv libary; we need to see if there's a 
workaround or whether we 
need to write our own CSV parsing to get around this.

Original issue reported on code.google.com by joe.hugh...@gmail.com on 12 Sep 2007 at 5:29

GoogleCodeExporter commented 9 years ago
http://docs.python.org/lib/csv-fmt-params.html
skipinitialspace
should make the csv library work, but I don't think it gives us an easy way to 
warn.

Original comment by tom.brow...@gmail.com on 17 Sep 2007 at 5:18

GoogleCodeExporter commented 9 years ago
Will be fixed in next release

Original comment by tom.brow...@gmail.com on 30 Oct 2008 at 11:49