Skip to content

fix(converter): trailing empty <p> separator 건너뛰기를 layout 컨테이너에 확장합니다#971

Merged
jk-kim0 merged 3 commits intomainfrom
jk/fix-sidecar-empty-block-mapping
Apr 2, 2026
Merged

fix(converter): trailing empty <p> separator 건너뛰기를 layout 컨테이너에 확장합니다#971
jk-kim0 merged 3 commits intomainfrom
jk/fix-sidecar-empty-block-mapping

Conversation

@jk-kim0
Copy link
Copy Markdown
Contributor

@jk-kim0 jk-kim0 commented Apr 2, 2026

Summary

  • _is_trailing_empty_p[document] 레벨에서만 작동하여 ac:layout-cell 내부 trailing empty <p>에서 N+1 blank line이 생성되던 문제를 수정합니다
  • ac:layout, ac:layout-section, ac:layout-cell을 투명 래퍼로 인식하여 N → N 매핑을 보장합니다
  • 영향받는 테스트 fixture 3개(544112828 original/improved/expected, 544178422 original)를 갱신합니다

Test plan

  • make test-reverse-sync 전체 통과 (16 + 42 = 58 tests)
  • 544178422 verify diff 해소 확인
  • main 머지 후 python3 -m pytest tests/ 전체 통과 확인 (워크트리에서는 var/ 캐시 부재로 3건 실패)

🤖 Generated with Claude Code

@jk-kim0 jk-kim0 self-assigned this Apr 2, 2026
기존에는 [document] 레벨에서만 trailing empty <p> separator 건너뛰기가
적용되어, ac:layout-cell 내부에서 N개의 trailing empty <p>가
N+1개의 blank line을 생성했습니다.

이로 인해 reverse-sync verify에서 trailing blank line 수가 불일치하여
roundtrip 검증에 diff가 발생했습니다 (544178422).

ac:layout, ac:layout-section, ac:layout-cell을 투명 래퍼로 인식하여
N → N 매핑을 보장합니다. 영향받는 테스트 fixture를 함께 갱신합니다.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jk-kim0 jk-kim0 force-pushed the jk/fix-sidecar-empty-block-mapping branch from ad47157 to 96e4a18 Compare April 2, 2026 05:39
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
querypie-docs Ready Ready Preview, Comment Apr 2, 2026 5:56am

Request Review

- isu_001 (confluence-mdx/tests/testcases/544112828/expected.mdx:296): fixture의 공백 줄 수를 바꾸면서 expected.roundtrip.json은 갱신하지 않아 forced-splice golden이 깨졌습니다. CI의 test_reverse_sync_byte_verify.py::TestSpliceRealTestcases::test_all_testcases_splice_byte_equal가 544112828에서 byte_mismatch_splice로 실패합니다.
- isu_001 (confluence-mdx/tests/testcases/544112828/expected.mdx:296): fixture의 공백 줄 수를 바꾸면서 expected.roundtrip.json은 갱신하지 않아 forced-splice golden이 깨졌습니다. CI의 test_reverse_sync_byte_verify.py::TestSpliceRealTestcases::test_all_testcases_splice_byte_equal가 544112828에서 byte_mismatch_splice로 실패합니다.
@jk-kim0
Copy link
Copy Markdown
Contributor Author

jk-kim0 commented Apr 2, 2026

[debate-review][sha:96e4a18c027c87fd0f3d1e9f2f79849ce47f440d] Consensus reached after 3 rounds.

Debate Summary

  • isu_001 [accepted] 544112828 roundtrip golden 재생성

Applied Fixes

  • confluence-mdx/tests/testcases/544112828/expected.mdx:296 - (reported by codex, applied by codex) fixture의 공백 줄 수를 바꾸면서 expected.roundtrip.json은 갱신하지 않아 forced-splice golden이 깨졌습니다. CI의 test_reverse_sync_byte_verify.py::TestSpliceRealTestcases::test_all_testcases_splice_byte_equal가 544112828에서 byte_mismatch_splice로 실패합니다.

@jk-kim0 jk-kim0 merged commit 636dd8b into main Apr 2, 2026
7 checks passed
@jk-kim0 jk-kim0 deleted the jk/fix-sidecar-empty-block-mapping branch April 2, 2026 07:37
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