lib/masticate/csvify.rb in masticate-0.2.2 vs lib/masticate/csvify.rb in masticate-0.2.3
- old
+ new
@@ -12,10 +12,10 @@
@output_count = 0
with_input do |input|
while line = get
row = CSV.parse_line(line, csv_options)
if row
- row = row.map(&:strip)
+ row = row.map {|s| s && s.strip}
emit(row)
end
end
end
@output.close if opts[:output]