Skip to content

Conversation

@rguihard
Copy link

When an ODS contains only one or few columns, it is not desirable to export the constant MAX_COLUMN_COUNT=1024 as attribute number-columns-repeated.
ODS readers (like SODS) will consider a generated file with 2 columns contains "rows * 1024" cells wheras it contains only "rows * 2" cells.

The TableModel#columnCapacity knows the initial columnCapacity. Using this value is more accurate.

Rguihard added 2 commits June 14, 2024 09:03
Use TableModel#columnCapacity instead of MAX_COLUMN_COUNT in
appendXMLToTable.
When an ODS contains only one or few columns, it is not desirable to
export the constant MAX_COLUMN_COUNT=1024 as attribute
number-columns-repeated.
On the other hand, the TableModel#columnCapacity knows the initial
columnCapacity.
columnCapacity must be used even in the case where column headers are
specified
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.

1 participant