fix(layout): lay an empty line below a top-and-bottom object beside floating ones - #393
Merged
airmang merged 1 commit intoOct 2, 2026
Conversation
…loating ones A paragraph holding no text, an object placed top and bottom from its top and, beside it, objects in front of or behind the text had its empty line on the object's top, taking no room. Hancom sets that line below the object at full width, as for a space or a label, whether the floating object is placed on the paper or from the paragraph, in front of the text or behind it: in the body and in table cells, where such a paragraph was unsupported without caches. With the top-and-bottom object alone, the line stays on its top. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
airmang
deleted the
fix/page-estimate-empty-line-below-an-object-beside-floating-ones
branch
October 2, 2026 20:24
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.
바뀐 점
쪽 수 추정(실험,
estimate_pages)이 글 없는 문단에 위아래로 둔 개체(표·그림, 문단 위 0)와 글 앞·뒤로 둔 개체가 함께 있을 때, 빈 줄을 위아래 개체의 윗선에 두던 것을 고친다._anchored_object가 뜬 개체를 머리표처럼 다룬다(_beside_floating).a nested table)이었다. 이제 뜬 개체를 문단의 개체로 세지 않고, 빈 줄을 표 아래로 보낸다(_object_before_text,_table_before_text).테스트
tests/test_layout_page_estimate.py의HANCOM_PAGES에 한/글 저장본 다섯을 더한다. 캐시가 있을 때와 없을 때를 모두 시험한다.HANCOM_PAGES로 옮긴다. 캐시 없이 지원 밖임을 단언하던 시험은 지운다.🤖 Generated with Claude Code