summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAndrew Voynov <37143421+Andrew15-5@users.noreply.github.com>2025-03-24 21:08:39 +0300
committerGitHub <noreply@github.com>2025-03-24 18:08:39 +0000
commit636eea18bc1c3fe2acb09e59e67f38a4a0c1b323 (patch)
tree500aaa67c75bc40fbc66b9f555171627cc90146d /crates
parent91956d1f035b79d1e84318b62cce24659bb3d14d (diff)
Expand page breaks' triggers for page(height: auto) in docs (#6081)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst-library/src/layout/page.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/typst-library/src/layout/page.rs b/crates/typst-library/src/layout/page.rs
index 0964dccd..af6ad642 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")?