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

Make size ignore formatted cells without content #52

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jglauche
Copy link

@jglauche jglauche commented Oct 9, 2019

I ran into a bunch of issues loading spreadsheets with formatting over "all" rows. The way it saves styles after your content is to have rows/columns with empty content, repeated a lot of times.
With 0.5.3, all my documents from gnumeric would respond with a rowcount of 65536 items, and documents with styles selecting a column would return 1048576 rows.

I made first_unused_subitem_index to look in a subset consisting from the first item to the last item with content. I also added another testfile and specs for worksheet.

spec/worksheet_spec.rb Show resolved Hide resolved
spec/worksheet_spec.rb Outdated Show resolved Hide resolved
spec/worksheet_spec.rb Outdated Show resolved Hide resolved
spec/worksheet_spec.rb Show resolved Hide resolved
spec/spec_helper.rb Outdated Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
@coveralls
Copy link

Coverage Status

Coverage decreased (-7.1%) to 90.922% when pulling 3b59ba4 on jglauche:master into 3ed63da on gorn:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-7.1%) to 90.922% when pulling 3b59ba4 on jglauche:master into 3ed63da on gorn:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-7.1%) to 90.922% when pulling 3b59ba4 on jglauche:master into 3ed63da on gorn:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-7.1%) to 90.922% when pulling 3b59ba4 on jglauche:master into 3ed63da on gorn:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-7.1%) to 90.922% when pulling 3b59ba4 on jglauche:master into 3ed63da on gorn:master.

@coveralls
Copy link

coveralls commented Oct 9, 2019

Coverage Status

Coverage decreased (-0.03%) to 97.998% when pulling bb7881b on jglauche:master into 3ed63da on gorn:master.

lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
lib/rspreadsheet/xml_tied_array.rb Show resolved Hide resolved
@gorn
Copy link
Owner

gorn commented Oct 9, 2019

I can roughly see where you are going. Let us discuss this in an issue #53 first so I understand it fully.

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.

None yet

4 participants