#813:
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/1.9.0/csv.rb:1817:in
`block': Unclosed quoted field on line 1. (CSV::MalformedCSVError)
------------------------------+---------------------------------------------
Reporter: jadark...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
------------------------------+---------------------------------------------
Comment(by jadark...@…):
Replying to [comment:1 jadark...@…]:
Sorry but I forgot to preview the last comment.
"1,2,River LINE,0"
"2,2,Princeton Shuttle,0"
"3,2,Atlantic City Rail Line,2"
"4,2,Montclair-Boonton Line,2"
"5,2,Montclair-Boonton Line,2"
"6,2,Hudson-Bergen Light Rail,0"
"7,2,Main/Bergen County Line,2"
"8,2,Port Jervis Line,2"
"9,2,Morris & Essex Line,2"
"10,2,Gladstone Branch,2"
"11,2,Northeast Corridor,2"
"12,2,North Jersey Coast Line,2"
"13,2,North Jersey Coast Line,2"
"14,2,Newark Light Rail,0"
"15,2,Pascack Valley Line,2"
"16,2,Princeton Shuttle,2"
"17,2,Raritan Valley Line,2"
"18,2,Meadowlands Rail Line,2"
> It appears that if the lines in the csv file are quoted, then macuby
acts as expected.
> So the following csv file works.
>
> "1,2,River LINE,0"
> "2,2,Princeton Shuttle,0"
> "3,2,Atlantic City Rail Line,2"
> "4,2,Montclair-Boonton Line,2"
> "5,2,Montclair-Boonton Line,2"
> "6,2,Hudson-Bergen Light Rail,0"
> "7,2,Main/Bergen County Line,2"
> "8,2,Port Jervis Line,2"
> "9,2,Morris & Essex Line,2"
> "10,2,Gladstone Branch,2"
> "11,2,Northeast Corridor,2"
> "12,2,North Jersey Coast Line,2"
> "13,2,North Jersey Coast Line,2"
> "14,2,Newark Light Rail,0"
> "15,2,Pascack Valley Line,2"
> "16,2,Princeton Shuttle,2"
> "17,2,Raritan Valley Line,2"
> "18,2,Meadowlands Rail Line,2"
--
Ticket URL: <http://www.macruby.org/trac/ticket/813#comment:2>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel