Fix cornercase of to_csv with skipHidden enabled #1508

Closed
biggestT wants to merge 1 commits from patch-1 into master

1 Commits

Author SHA1 Message Date
Tor Nilsson Öhrn cf8ae427c3
Fix cornercase of to_csv with skipHidden enabled
When running `xlsx.stream.to_csv(sheet, { skipHidden: true })` on the only sheet in [this XLS-file from the Swedish Pension Authority](https://www.pensionsmyndigheten.se/content/dam/pensionsmyndigheten/blanketter---broschyrer---faktablad/statistik/premiepension/fonddata/nuvarande-och-tidigare-fonder/Lista%20alla%20fonder%20.xls) the stream never got to `on('end')`. I think it's because all the rows in the last `_read` call was set to hidden. This seems to have fixed it and makes sense to me but I'm not very familiar with node streams.
2019-05-15 20:40:43 +02:00