Ignore empty lines #115

Open
mslw wants to merge 2 commits from mslw/emptylines into main

2 commits

Author SHA1 Message Date
cae025af31 Trim empty rows when converting xlsx to tsv
With this change, excel to tabby conversion will preserve empty lines
in the middle of the file (maybe a visual separation of sections in a
many-objects file), but truncate empty lines at the end (maybe excel
artefact). This requires double iteration over the rows (first to find
where data ends, then to export), but it seems inexpensive.

This should help situations when excel (or calc) xlsx file preserves
blank lines.

One test data file (tsv) used to test round-tripping is altered to
remove empty lines at the end. So in the end we no longer guarantee
round-tripping these empty lines, but I feel this was a non-feature.
2023-11-21 15:54:28 +01:00
0408aafe6b Ignore rows where all values are empty strings
This will do a better job of ignoring empty tsv lines, bu checking for
empty strings in addition to Nones (I think csv reader typically
produces empty strings).
2023-11-21 14:19:10 +01:00