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