feat(layout): page estimate for a table placed top and bottom in a cell paragraph without caches - #366
Merged
airmang merged 5 commits intoOct 1, 2026
Conversation
…n a cell paragraph without caches
Without layout caches a cell paragraph holding nothing but tables placed top and bottom from its top makes
the cell reach the tables' foot, as tall as their rows (one placed up stands at the paragraph's top), as a
drawing there does; the line after such a paragraph goes on below that foot, also when the row splits
between its lines over a page end. Such a cell was unsupported ("a nested table").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…without caches Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ell paragraph without caches Hancom sets the empty line of a paragraph holding two such tables below the second, not beside the first: without caches that cell stays unsupported. Fixtures: a line after such a table, a table 1000 down, two tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a cell paragraph's text without caches Without layout caches a cell paragraph whose text follows a table placed top and bottom from its top now lays the first line reaching the table, and the lines after it, below the table, as Hancom does (one placed up stands at the paragraph's top); the paragraph reaches down to the table's foot at least. Rows holding such a cell split between its lines over a page end as with the caches. Such a cell was unsupported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l-tables-placed-top-and-bottom # Conflicts: # CHANGELOG.md # src/hwpx/layout/pages.py
Owner
Author
airmang
deleted the
fix/page-estimate-cell-tables-placed-top-and-bottom
branch
October 1, 2026 21:58
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)이 줄 캐시 없는 표 칸에서 위아래 배치 표 하나가 든 문단을 따른다.a nested table)이었다._objects_reach가 그림·도형처럼 이런 표도 센다. 표 높이는 행으로 재고(_inline_table_height) 바깥 여백을 더한다._Measure.pushed_lines가 그렇게 줄을 놓는다. 줄이 모두 표 위에 있으면 문단이 표 아래 끝까지 닿는다._Measure.stack_lines는 개체가 닿는 문단 뒤의 줄을stack처럼 그 아래 끝에서 잇는다. 전에는 줄 간격만큼만 내려가서, 그런 행이 쪽을 넘어 줄 사이에서 나뉠 때 줄 목록이 행보다 짧았다._table_on_its_own은 표 하나만 받는다). 어울림 표, 글 사이에 둔 표도 그대로다.테스트
HANCOM_PAGES)stack_lines의 고침만 빼면 행 나눔 두 판이 실패한다.🤖 Generated with Claude Code