Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListToCSVConverter generates extra CR for new line #30

Open
genaromendezl opened this issue Jun 27, 2019 · 2 comments
Open

ListToCSVConverter generates extra CR for new line #30

genaromendezl opened this issue Jun 27, 2019 · 2 comments
Labels

Comments

@genaromendezl
Copy link

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

@close2 close2 added the bug label Jun 28, 2019
@close2
Copy link
Owner

close2 commented Jul 2, 2019

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?

@RedFox64
Copy link

I have the same error.
double_CR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants