csv icon indicating copy to clipboard operation
csv copied to clipboard

CsvToListConverter adds extra rows for empty newlines at end of file

Open erf opened this issue 5 years ago • 1 comments

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 ..

erf avatar May 12 '20 06:05 erf

I will try to add this in the next days.

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

close2 avatar May 17 '20 19:05 close2