Repository navigation
fix(line-cache): leave paragraphs with an undefined label or a negative margin to Hancom #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P2] 표 문단의 fallback에도 동일한 차단 조건을 적용해 주세요. write_line_caches는
_lines(...) or _table_line(...) or _picture_lines(...)로 작성 경로를 고르므로, 여기서 None을 반환해도_table_line은 _unknown_label/음수 여백 검사를 하지 않아 캐시를 만듭니다. 공개 API 재현: 새 문서에 1×1 표(칸 텍스트 '가나다')를 만들고, 표의 holder p에만 기존 hh:paraPr을 복사한 별도 id=999를 참조시킵니다(칸 문단의 모양은 그대로). 그 모양을hh:heading type=BULLET/NUMBER,idRef=999(정의 없음) 또는 왼쪽/오른쪽 margin=-500으로 바꾸고 write_line_caches를 호출하면 네 경우 모두 written=2, skipped=0이고 holder에도 linesegarray가 생깁니다. 왼쪽 음수 사례에는 horzpos=-500,horzsize=43020이 기록됩니다. 같은 모양의 텍스트 문단은 올바르게 건너뜁니다. PR이 한/글과의 폭을 확정하지 못해 차단하는 조건이므로 표 holder도 캐시 작성 대상에서 제외하거나 이 경로를 별도로 검증해 주세요. _table_line 공통 사전검사와 holder별 공개 API 회귀를 추가하면 이 우회를 막을 수 있습니다.