From 636eea18bc1c3fe2acb09e59e67f38a4a0c1b323 Mon Sep 17 00:00:00 2001 From: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Date: Mon, 24 Mar 2025 21:08:39 +0300 Subject: [PATCH] Expand page breaks' triggers for page(height: auto) in docs (#6081) --- crates/typst-library/src/layout/page.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/typst-library/src/layout/page.rs b/crates/typst-library/src/layout/page.rs index 0964dccd2..af6ad642d 100644 --- a/crates/typst-library/src/layout/page.rs +++ b/crates/typst-library/src/layout/page.rs @@ -75,9 +75,10 @@ pub struct PageElem { /// The height of the page. /// /// If this is set to `{auto}`, page breaks can only be triggered manually - /// by inserting a [page break]($pagebreak). Most examples throughout this - /// documentation use `{auto}` for the height of the page to dynamically - /// grow and shrink to fit their content. + /// by inserting a [page break]($pagebreak) or by adding another non-empty + /// page set rule. Most examples throughout this documentation use `{auto}` + /// for the height of the page to dynamically grow and shrink to fit their + /// content. #[resolve] #[parse( args.named("height")?