HWP 문서에서도 비표준 문서 보정 모달 표시#69
Open
withqua wants to merge 1 commit into
Open
Conversation
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.
문제점
RHWP에서는 정상적으로 보정 모달이 표시되는 문서가 HOP에서는 표시되지 않고, 보정되지 않은 상태로 렌더링됩니다.
해당 문서는 비표준 lineseg 경고가 있는 HWP 문서로 보이며, upstream rhwp-studio에서는 문서 로드 후 보정 여부를 묻는 모달이 표시됩니다.
개요
HOP에서도 비표준 lineseg 경고가 있는 HWP 문서를 열 때 upstream rhwp-studio와 동일하게 보정 모달이 표시되도록 수정했습니다.
기존 HOP 구현에서는 validation warning 확인이
sourceFormat === 'hwpx'조건 안에 있어, HWP 문서에서 경고가 감지되더라도 “자동 보정” 선택지가 나타나지 않았습니다.이번 변경에서는 해당 조건을 제거해 HWP/HWPX 모두에서
getValidationWarnings()결과를 확인하고, 경고가 있을 경우 기존 보정 모달과reflowLinesegs()흐름을 사용하도록 했습니다.변경 사항
sourceFormat전달 제거영향 범위
apps/studio-host/src/main.ts의 문서 초기화 흐름만 변경third_party/rhwp는 수정하지 않음동작 확인
기존 v0.2.0에서는 해당 HWP 문서가 보정되지 않은 상태로 표시되었고, 이번 변경 후에는 보정 모달이 표시되며 “자동 보정” 선택 시 정상적으로 보정된 렌더링을 확인했습니다.

이전에 HWP 문서에서도 보정 기능이 동작하도록 수정한 PR이 있었는데, 이후
HWPX-only validation modal guard가 다시 들어오면서 HWP 문서의 보정 모달이 표시되지 않는 상태가 된 것으로 보입니다.혹시 해당 guard가 의도된 변경이었는지 확인 부탁드립니다. 의도된 변경이 아니라면, HWP 문서에서도 validation warning 기반 보정 모달이 표시되는 현재 동작이 upstream rhwp-studio와 더 일치한다고 판단했습니다.