Feature #11865
closedCSV: keep original line when parsing
Description
Just like the attribute @lineno in CSV, the CSV parser should keep the last original line when parsing a csv file.
Here is the reason that I want it, I am making a software to parse CSV which user uploaded, and verify the data in the csv file is valid or not, the software need show the user original line and tell the user that there is some problem with the csv file which the user uploaded.
Also it's better if the CSV parser capable of keeping all positions of row string for each columns.
Is it possible to add the feature into CSV parser? or is it Ok that add the feature with an option to enable it?
Updated by doni (Doni Leong) about 9 years ago
Here is the pull request for this, https://github.com/ruby/ruby/pull/1170
Updated by hsbt (Hiroshi SHIBATA) over 7 years ago
- Status changed from Open to Assigned
- Assignee set to hsbt (Hiroshi SHIBATA)
Updated by hsbt (Hiroshi SHIBATA) over 7 years ago
- Status changed from Assigned to Closed
Applied in changeset trunk|r58743.
Added accessor of original line when parsing.
[Feature #11865][ruby-core:72452][fix GH-1170]