summaryrefslogtreecommitdiff
path: root/lib/csv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csv.rb')
-rw-r--r--lib/csv.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index 914acb28c7..30e4b23586 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -1656,7 +1656,7 @@ class CSV
# The line number of the last row read from this file. Fields with nested
# line-end characters will not affect this count.
#
- attr_reader :lineno
+ attr_reader :lineno, :line
### IO and StringIO Delegation ###
@@ -1831,6 +1831,12 @@ class CSV
return nil
end
+ if in_extended_col
+ @line.concat(parse)
+ else
+ @line = parse.clone
+ end
+
parse.sub!(@parsers[:line_end], "")
if csv.empty?