Repository navigation
Keep template merges whose top-left cell has no <c> element #1080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
michelebastione
merged 4 commits into
mini-software:master
from
vtxe02023274:fix/template-merge-without-cell
Nov 28, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
021f9d2
Keep template merges whose top-left cell has no <c> element
vtxe02023274 5ae3516
Take a group's values from its first row that has a collection
vtxe02023274 6cc459b
Add missing rows inside a group so its passes do not overlap
vtxe02023274 b622921
Leave merges on missing rows inside a group as they are
vtxe02023274 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve merges skipped inside groups.
With
@groupin A1,{{items.name}}in A2, an absent row 4 containing mergeB4:C4, and@endgroupin A5, this branch discards the merge.GetMergeCellsremoves the original XML. Without an anchor, noRowMercellsentry reaches the output writer.Preserve unpicked merges through a fallback that uses the existing group coordinate mapping. Do not remove this guard alone, because inserting the row can restore the earlier group failures. Extend the group regression test to assert the merge references.
The
#1078objective requires preservation even when the anchor row is absent.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Known and left out on purpose, as the description says. Inside a group a missing row changes the pass stride, so keeping that merge needs the group writer to account for gap rows, which is what broke the previous two attempts. Master drops it too, so this PR does not make it worse; better as a separate change if the maintainers want it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vtxe02023274 Thanks for explaining. I overstated how simple the fallback would be: the group writer must account for gap rows.
I understand the decision to defer this case. I won’t mark the finding as addressed.
You are interacting with an AI system.