lib/datev/export.rb in datev-0.5.0 vs lib/datev/export.rb in datev-0.5.1

- old
+ new

@@ -21,11 +21,11 @@ @rows.each do |row| string << to_csv_line(row.output(@header)) end - string.encode(CSV_OPTIONS[:encoding]) + string.encode(CSV_OPTIONS[:encoding], invalid: :replace, undef: :replace, replace: ' ') end def to_file(filename) File.open(filename, 'wb') do |file| file.write(to_s) @@ -33,9 +33,9 @@ end private def to_csv_line(data) - data.join(CSV_OPTIONS[:col_sep]) + "\n" + data.join(CSV_OPTIONS[:col_sep]) + "\r\n" end end end