lib/io_streams/line/reader.rb in iostreams-1.6.2 vs lib/io_streams/line/reader.rb in iostreams-1.7.0
- old
+ new
@@ -94,20 +94,20 @@
if line && @embedded_within
initial_line_number = @line_number
while line.count(@embedded_within).odd?
if eof? || line.length > @buffer_size * 10
raise(Errors::MalformedDataError.new(
- "Unbalanced delimited field, delimiter: #{@embedded_within}",
- initial_line_number
- ))
+ "Unbalanced delimited field, delimiter: #{@embedded_within}",
+ initial_line_number
+ ))
end
line << @delimiter
next_line = _readline
if next_line.nil?
raise(Errors::MalformedDataError.new(
- "Unbalanced delimited field, delimiter: #{@embedded_within}",
- initial_line_number
- ))
+ "Unbalanced delimited field, delimiter: #{@embedded_within}",
+ initial_line_number
+ ))
end
line << next_line
end
end
line