Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix XSSFExcelExtractor to emit empty cells #241

Merged
merged 1 commit into from
Jan 11, 2020

Conversation

toddlucas
Copy link
Contributor

The default IRow enumerator will skip empty cells. This makes it so that the output from the Text property has cells that don't line up with their corresponding headers.

This fix calls GetCell instead, which will return null in cases where the cell was empty. The tab delimiters work as expected now.

The default IRow enumerator will skip empty cells. This makes it so
that the output from the Text property has cells that don't line up
with their corresponding headers.

This fix calls GetCell instead, which will return null in cases where
the cell was empty. The tab delimiters work as expected now.
@tonyqus tonyqus merged commit e918a6e into nissl-lab:master Jan 11, 2020
toddlucas added a commit to toddlucas/npoi that referenced this pull request Jan 16, 2021
This fixes the issue addressed in PR nissl-lab#241 to emit a tab when an
empty cell is encountered. Without it, any Excel file with an empty
cell cannot be effectively parsed as CSV (TSV) since the cells
don't line up with their expected columns. This fix does not affect
any other tests.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants