Repository navigation
A stack can repeat its header at the top of each page it goes on to - #207
Merged
Merged
Conversation
…oes on to Its children after the header flow within bounds that paint the header, as a tagged artifact, at the top of each new page and go on below it, so breaks deep in nested stacks, texts and tables bring it back too. The header is kept with the start of the box after it. FlowingBounds gathers what these bounds share with DecoratedBounds. Assisted-by: Claude Opus 5.5 [Claude Code]
Assisted-by: Claude Opus 5.5 [Claude Code]
…aises Its headings are painted again with the outline paused, and a header as high as the page with its gap raises CannotFit before anything is drawn instead of recursing. The layout fuzzer gives stacks header: true, and does not count a repeated header as a split stack. Assisted-by: Claude Opus 5.5 [Claude Code]
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.
A list that runs over several pages loses its title after the first one: a stack kept together moves whole to the next page and leaves blank space, and one that breaks leaves its continuation untitled. Only tables repeat their header row.
stack(header: true)draws the stack's first box again at the top of each page the stack goes on to, with the stack's gap below it. Its other children flow within bounds that paint the header on each new page, so a break anywhere below, in a nested stack, a text or a table, brings it back./Pagination /Headerartifacts, and its headings are bookmarked once.CannotFitbefore anything is drawn.header:, since it breaks pages between its lines.FlowingBoundsgathers what these bounds share withDecoratedBounds.Proof
native_breaks_test.rb: repeats on every page, breaks deep in nested stacks and tables, never stranded, drawn once when the stack fits or moves whole, decorated stacks, nested headers, too-high header, option check.tagging_test.rb: header element once in the structure tree, artifacts on later pages, balanced marked content, veraPDF PDF/UA-1 valid.native_roles_test.rb: the header's heading is in the outline once.header: true: 1,000 cases green on seeds 42 and 7 (it found the recursion that the earlyCannotFitnow prevents).