mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 18:26:05 -06:00
table.resize grew a table over a neighbouring table without checking, leaving two
overlapping tables that Excel refuses to open as is. It now refuses, as Excel does, a
new range that takes in another table, a merged area, a PivotTable report or a
multi-cell array formula. A spilled formula is still allowed (Excel allows it too).
The columns a resize added were named by position ("Column{i+1}"), which could repeat
a name already in the header row (a table whose third column is Column3, resized to
start there, got a second Column3). The header row and the column names then drifted
apart and the reader made the name unique on reopen ("Column32"). New columns are now
named the way Excel names them (observed): an empty header continues a ColumnN on its
left, otherwise takes the lowest free ColumnN, and a repeated header gets the next free
suffix. The names are written into the header row as text. A table without a header
row keeps its column names by position.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>