mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 18:56:59 -06:00
auto_row_height grew a row for every line break in a cell's text whether or not the cell wrapped. Excel counts breaks only when Wrap Text is on: with it off a multi-line value displays on one line and AutoFit gives a one-line row. A file whose unwrapped cells hold pasted multi-line text (the shape generating libraries write) opened with tall rows and nothing visibly tall in them. The fast path no longer treats a line break as a reason to measure, and the measuring path lays text out over lines only for a wrapping cell. Typing a break still turns wrap on (the Alt+Enter rule in cell entry) and grows the row, as before. Test: an unwrapped multi-line cell from a file keeps the default height on open; wrap on grows the row; wrap off returns it; a typed break wraps and grows. The open-time fit tests from #833 are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>