Skip to content

fix(xlsx): preserve images anchored in merged cells - #5388

Open
xiejinwen113 wants to merge 1 commit into
opendatalab:masterfrom
xiejinwen113:codex/fix-xlsx-merged-cell-images
Open

xiejinwen113 wants to merge 1 commit into
opendatalab:masterfrom
xiejinwen113:codex/fix-xlsx-merged-cell-images

Conversation

@xiejinwen113

Copy link
Copy Markdown

Motivation

Images anchored to non-top-left cells inside an XLSX merged range were emitted under hidden merged-cell coordinates. As a result, only one image remained visible in the generated table output when several images belonged to the same merged cell.

Modification

  • Map image anchors inside merged ranges to the range's top-left cell.
  • Keep all images assigned to that merged-cell anchor.
  • Add a synthetic regression test with three images anchored across one merged range.

BC-breaking

No.

Checklist

Before PR:

  • Bug fixes are fully covered by unit tests.
  • The modification is covered by unit tests.
  • git diff --check passes.

Test: uv run --with pytest pytest -o addopts='' -q tests/unittest/test_xlsx_converter.py (1 passed).

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant