Task #1270: 캡션 내 인라인 이미지 렌더링 복구#1551
Merged
Merged
Conversation
Collaborator
Author
|
보완 커밋 fdfe568 을 추가했습니다. 리뷰 중 확인한 경계 조건은 표 캡션이 반영 내용:
로컬 검증:
|
Collaborator
Author
|
머지 완료했습니다.
검증:
주의: #1270 은 플로팅 캡션 이미지 후속 범위가 남아 있으므로 이번 merge로 닫지 않습니다. |
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.
개요
Refs #1270
캡션 문단 안의
treat_as_char인라인 그림이 렌더링되지 않던 문제를 수정합니다.기존
layout_caption()경로는 캡션 문단을layout_composed_paragraph()로 넘길 때 인라인 이미지 렌더링에 필요한 원본para와bin_data_content를None으로 전달하고 있었습니다. 이 PR에서는 캡션 문단의 실제para와 상위 렌더 경로의bin_data_content를 스레딩해, 캡션 안 인라인 그림이 기존 paragraph layout의 이미지 방출 경로를 사용할 수 있게 했습니다.메인테이너 지시사항 반영
이번 PR은 메인테이너 코멘트의 방향에 따라 범위를 제한합니다.
참고: #1270 (comment)
범위
treat_as_char인라인 이미지 렌더링 복구layout_caption()호출부에bin_data_content전달범위 제외 및 후속 추적
이슈 첨부 샘플의 오른쪽 상단
SEOUL MY SOUL로고, 즉image2는 캡션 내부 그림이지만textWrap="TOP_AND_BOTTOM"인 플로팅 배치입니다.따라서 이 PR로는 해당 로고가 아직 화면에 나타나지 않는 것이 예상된 동작입니다. 이 PR은 메인테이너 지시에 따라 (a) 인라인 캡션 이미지 해결과 depth 1 한정에 집중합니다.
플로팅 캡션 이미지는 caption 영역에 앵커, 줄 매핑, wrap 배치 로직을 일반화해야 하므로 후속 이슈 #1585에서 추적합니다.
이 때문에 #1270은 이 PR이 merge된 뒤에도 닫지 않고, 플로팅 캡션 이미지 후속까지 추적 상태로 유지해야 합니다.
변경 사항
layout_caption()에bin_data_content: &[BinDataContent]인자 추가Some(para)/Some(bin_data_content)전달테스트
cargo fmt --checkcargo test --test issue_1270_caption_inline_imagecargo test --test issue_1139_inline_picture_duplicatecargo test --test issue_1352_table_cell_tac_picture_textcargo test --test issue_1459_topbottom_picture_reflowcargo test --libcargo clippy --lib -- -D warningscargo test --test issue_530cargo test --test issue_1486_hwpx_partial_tac_table