Skip to content

Fix pagebreaks when rendering source #93

Merged
istathar merged 5 commits intotechnique-lang:mainfrom
istathar:rendering-improvements
Mar 16, 2026
Merged

Fix pagebreaks when rendering source #93
istathar merged 5 commits intotechnique-lang:mainfrom
istathar:rendering-improvements

Conversation

@istathar
Copy link
Copy Markdown
Member

When rendering Technique source to PDF there were page breaks happening in awkward places: in the middle of steps, for example. This branch addresses this by wrapping block(breakable: false) elements around groups of lines that should not permit pagebreaks.

Considerable difficulty arose in getting the line appearance correct. This was solved by setting the block spacing and par spacing to be the same value.

@istathar istathar self-assigned this Mar 16, 2026
@istathar istathar merged commit 05f468b into technique-lang:main Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant