Commit fb307bc
fix(reverse_sync): 리스트 항목 선행 공백 축소가 XHTML에 반영되지 않는 문제를 수정합니다 (#977)
## Summary
- `_apply_text_changes`에서 텍스트 노드 사이 gap이 축소될 때(예: 2공백→1공백) leading
whitespace가 보존되는 버그를 수정합니다
- 이로 인해 `<p> Admin` → FC → `* Admin` (이중 공백)이 발생하던 문제가 해결됩니다
- gap이 완전 삭제(`not gap_new`)뿐 아니라 공백으로만 축소된 경우에도 leading을 제거합니다
## Test plan
- [x] `make test-reverse-sync` 전체 통과 (42 passed, 0 failed)
- [x] `make test-reverse-sync-bugs-one TEST_ID=544377652` 통과
- [x] convert 테스트 전체 통과 (21 passed)
- [x] pytest 단위 테스트 통과 (929 passed, e2e 2건은 worktree 환경 문제로 제외)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 14aa2cf commit fb307bc
2 files changed
Lines changed: 71 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
| 623 | + | |
623 | 624 | | |
624 | 625 | | |
625 | 626 | | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
630 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
631 | 637 | | |
632 | 638 | | |
633 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
0 commit comments