csv icon indicating copy to clipboard operation
csv copied to clipboard

ListToCSVConverter generates extra CR for new line

Open genaromendezl opened this issue 6 years ago • 2 comments

Error in CSV:4.0.3

ListToCSVConverter generate an extra CR code for each new line.

The method convert(), generates one CR + CR + LF at the end of each line, when only one LF or one CR+LF pair is expected.

ErrorCSV

genaromendezl avatar Jun 27 '19 20:06 genaromendezl

I can not reproduce this issue.

My simple test program doesn't have this issue:

import 'package:csv/csv.dart';

main(List<String> arguments) {
  final csv = ListToCsvConverter().convert([["ab", "cd"],["xy","123"]]);
  print(csv.codeUnits.map((cu) => cu.toRadixString(16)));
}

Do you have an idea, why this happens in your case? What are your csv settings? How do you call convert?

close2 avatar Jul 02 '19 22:07 close2

I have the same error. double_CR

RedFox64 avatar May 12 '22 12:05 RedFox64