Task #1188 그림/표/도형의 textFlow 속성이 roundtrip 시 항상 BOTH_SIDES로 초기화됨#1213
Merged
Conversation
- model/shape.rs: TextFlow enum 신규 추가 (BothSides/LeftOnly/RightOnly/LargestOnly)
및 CommonObjAttr.text_flow 필드 추가
- parser/control/shape.rs: HWP5 바이너리 attr bit 24-25에서 TextFlow 파싱
- parser/hwpx/section.rs: HWPX textFlow 속성 파싱 (표/그림/도형/차트/OLE 5개 위치)
- serializer/hwpx/{shape,picture,table}.rs: 하드코딩 "BOTH_SIDES" → 실제 text_flow 값 출력
- document_core/converters/common_obj_attr_writer.rs: 비트 패킹에 bit 24-25 추가
및 TextFlow 라운드트립 테스트 4개 추가
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
edwardkim
added a commit
that referenced
this pull request
Jun 1, 2026
…#1188) @Martinel2 첫 기여. hwp2hwpx 권위 비트값 검증, 1916 passed, 무회귀(SVG byte 동일). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
|
머지했습니다(devel 진단이 정확했고 수정도 견고했습니다 — 검증:
참고로 이 PR 은 CI 가 실행되지 않은 상태여서 로컬에서 fmt/build/clippy/test 를 직접 검증했습니다. 앞으로도 좋은 기여 기대하겠습니다. |
edwardkim
added a commit
that referenced
this pull request
Jun 1, 2026
@Mireutale (#1206 분리 재제출) — HWPX 직렬화 시 본문 문단과 표 셀 문단의 <hp:p id> 가 같은 번호 공간을 공유하지 않아 전역 중복 가능. SerializeContext 에 전역 next_para_id() 카운터 추가, 본문·각주·셀 문단이 공유. #1206 close 사유 ②(fillBrush 혼재)·③(image_fill_mode 비대칭) 해소 — header.rs 제외, id 충돌 수정만 분리. 충돌 해소: #1213(textFlow) 테스트와 인접 충돌 → 양쪽 보존. 검증: clippy(lib) clean, cargo test --tests 1921 passed. 통합 테스트 para_ids_unique_across_body_and_table(basic-table-01 라운드트립 id 전역 유니크). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
5 tasks
Contributor
Author
|
검토 및 머지 감사합니다! 도움이 될 수 있어서 기쁘네요!! |
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.
변경 요약
CommonObjAttr에text_flow필드(TextFlowenum)를 추가합니다.이전까지
textFlow속성은 HWPX 직렬화 시"BOTH_SIDES"로 하드코딩되어 있었고, HWP5 바이너리의 attr bit 24-25도 파싱하지 않았습니다.관련 이슈
closes #1188
테스트
cargo test통과cargo clippy -- -D warnings통과스크린샷
변경 전후 비교가 필요한 경우 첨부해주세요.