Project

General

Profile

Actions

Feature #11865

closed

CSV: keep original line when parsing

Added by doni (Doni Leong) over 8 years ago. Updated almost 7 years ago.

Status:
Closed
Target version:
-
[ruby-core:72452]

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) over 8 years ago

Here is the pull request for this, https://github.com/ruby/ruby/pull/1170

Updated by hsbt (Hiroshi SHIBATA) almost 7 years ago

  • Status changed from Open to Assigned
  • Assignee set to hsbt (Hiroshi SHIBATA)
Actions #3

Updated by hsbt (Hiroshi SHIBATA) almost 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]

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0