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

Fix parsing of .xlsx files exported from Numbers #114

Merged
merged 1 commit into from
Mar 27, 2014

Conversation

sidonath
Copy link
Contributor

@sidonath sidonath commented Mar 4, 2014

Numbers 3.1 can export .xlsx files, but the feature has some incensistencies and bugs.

This commit handles an inconsistency where the first sheet doesn't have have an index in the XML filename ("sheet.xml"), whereas such sheet would be named "sheet1.xml" by Excel. Trying to read such files would raise the following exception:

undefined method `xpath' for nil:NilClass in [GEM_ROOT]/gems/roo-1.10.1/lib/roo/excelx.rb on line 459

This fix is inspired by a solution provided in #110 by @janis-grigaluns. Kudos!

Numbers 3.1 can export .xlsx files, but the feature has some
incensistencies and bugs.

This commit fixes an inconsistency where the first sheet doesn't have
have an index in the XML filename ("sheet.xml"), whereas such sheet
would be named "sheet1.xml" by Excel.

This fix is inspired by a solution provided in roo-rb#110.
Empact added a commit that referenced this pull request Mar 27, 2014
Fix parsing of .xlsx files exported from Numbers
@Empact Empact merged commit 1ef91fa into roo-rb:master Mar 27, 2014
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

Successfully merging this pull request may close these issues.

2 participants