Skip to content

fix: calculate spreadsheet content within preview limits - #1179

Merged
andiwand merged 2 commits into
mainfrom
review/spreadsheet-content-limits
Oct 6, 2026
Merged

andiwand merged 2 commits into
mainfrom
review/spreadsheet-content-limits

Conversation

@andiwand

@andiwand andiwand commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

ODS previews dropped populated cells exactly at the requested bounds and repeated runs crossing them. XLSX ignored the window and trusted declared dimensions. Calculate content from sparse indexed cells, clip repeated and merged spans, and exclude cells outside the window. An empty XLSX cell still counts where its border or fill draws something. Reusing the ODF index removes a second cursor traversal.

Validation: OdfSheet*.* and OoxmlSpreadsheet*.* pass in the integrated stack, including four focused boundary/merge regressions. HTML tests also pass. Attribute-only ODF cells retain their existing treatment.

The rendered output changes for 13 public and 15 private spreadsheet pages, so the reference output needs a regeneration after this merges. ODS pages only gain the populated cells at the window edge. XLSX pages drop empty rows and columns after the content; their only lost text is row numbers and column letters, and none of the trimmed cells has a border or fill.

Base automatically changed from review/atomic-file-copies to main October 6, 2026 20:11
andiwand and others added 2 commits October 6, 2026 22:14
Counting only cells with content cut off empty cells that still draw:
Ordnerruecken.xlsx lost the row whose bottom borders close its spine
boxes. An empty cell now counts where its style has a border or a
visible fill, as the declared dimension covered it before. A check of
every changed corpus page finds no trimmed cell with a border or fill.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MxyTMutqSUJRGfxA8CyzMc
@andiwand
andiwand force-pushed the review/spreadsheet-content-limits branch from b6221a9 to 35b89a5 Compare October 6, 2026 20:20
@andiwand
andiwand marked this pull request as ready for review October 6, 2026 20:23
@andiwand
andiwand merged commit b917261 into main Oct 6, 2026
10 of 23 checks passed
@andiwand
andiwand deleted the review/spreadsheet-content-limits branch October 6, 2026 20:23
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