A table with a merged cell in it opened in Excel with the repair prompt, and Excel removed the
table and its AutoFilter ("Removed Feature: Table from /xl/tables/table1.xml"). GridCraft let
merged cells into a table four ways; each now does what Excel does:
- Merge Cells, Merge & Center and Merge Across refuse a range that touches a table ("You can't
merge cells in a table."). Unmerging is still allowed, so a file that has one can be fixed.
- Insert Table / Format as Table and Resize Table unmerge the merged cells the table covers
(observed: Excel creates the table and A2:B2 is no longer merged).
- Paste brings merged areas along, except into a table, where the cells arrive unmerged.
The command-sequence fuzzer checks the invariant (it found the paste case, seed 230).
* Get Data: refuse an import whose dense rows would be too large
data.getData and data.fromTextCsv built every row densely before
writing it: JSON records were padded to the union of all keys (found
with a quadratic Vec::contains scan), and CSV cells were expanded over
the whole used rectangle. A few sparse records or one far-away CSV
cell therefore allocated billions of slots.
The importer now collects JSON keys with a HashSet, refuses more keys
than a sheet has columns, and checks the projected rows x columns
against MAX_IMPORT_CELLS (10,000,000) before building any row.
* address review: stop collecting JSON keys at the column limit and reject oversized row counts before building rows
* address review: enforce the CSV import cell limit while parsing