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

CsvToListConverter adds extra rows for empty newlines at end of file #33

Open
erf opened this issue May 12, 2020 · 1 comment
Open

CsvToListConverter adds extra rows for empty newlines at end of file #33

erf opened this issue May 12, 2020 · 1 comment

Comments

@erf
Copy link

erf commented May 12, 2020

CsvToListConverter adds extra rows for empty newlines at end of file.

Would it make sense to skip these empty rows?

I fixed it by doing:

    rows.removeWhere((row) => row.length == 1 && row.first == '');

EDIT: or just call trim() on String ..

@close2
Copy link
Owner

close2 commented May 17, 2020

I will try to add this in the next days.

It's however not that easy when used as transformer.

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

No branches or pull requests

2 participants