fix(reverse_sync): preserved anchor 리스트 마커 공백 변경 시 XHTML 미반영 수정#988
Open
fix(reverse_sync): preserved anchor 리스트 마커 공백 변경 시 XHTML 미반영 수정#988
Conversation
ac:image를 포함하는 리스트에서 마커 뒤 공백만 변경(예: `4. 항목` → `4. 항목`)될 때, collapse_ws 후 old/new가 동일해져 text-level 패치가 no-op이 되는 문제를 수정합니다. mapping의 XHTML에서 synthetic reconstruction 데이터를 생성하여 replace_fragment 경로로 처리합니다. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jk-kim0
added a commit
that referenced
this pull request
Apr 6, 2026
build_patches() → has_content_change → replace_fragment 경로를 검증하는 통합 테스트를 추가합니다. 기존 단위 테스트는 _normalize_list_for_content_compare() 반환값만 확인하여 실제 회귀를 감지하지 못했습니다. 이 테스트는 동반 PR (#988)의 수정이 적용되어야 통과합니다. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 task
…트를 추가합니다 마커 공백만 변경된 이미지 preserved anchor 리스트에서: - replace_fragment 패치가 생성되고 ac:image가 보존되는지 검증 - patch_xhtml 적용까지 전 과정 E2E 검증 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ac:image를 포함하는 preserved anchor 리스트에서 마커 뒤 공백만 변경(예:4. 항목→4. 항목)될 때,collapse_ws후 old/new가 동일해져 text-level 패치가 no-op이 되는 버그를 수정합니다_build_replace_fragment_patch경로로 처리합니다sidecar.py에build_list_all_anchor_entries함수를 추가하여<li>직접 자식<ac:image>도 anchor entry로 수집합니다Test plan
make test-reverse-sync통합 테스트 43건 통과pytest test_reverse_sync_patch_builder.py단위 테스트 124건 통과🤖 Generated with Claude Code