summaryrefslogtreecommitdiff
path: root/src/library/page.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-04 11:46:04 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-04 11:46:04 +0200
commited4fdcb0ada909f1cc3d7436334e253f0ec14d55 (patch)
tree2b9abe7a852a060899ce4aa976391fa8dd9d293b /src/library/page.rs
parentdbfb3d2ced91e56314dfabbb4df9a338926c0a7a (diff)
Par nodes 🧳
Diffstat (limited to 'src/library/page.rs')
-rw-r--r--src/library/page.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/library/page.rs b/src/library/page.rs
index 1cc76d7f..b13f8a1e 100644
--- a/src/library/page.rs
+++ b/src/library/page.rs
@@ -57,3 +57,12 @@ function! {
vec![SetPageStyle(style)]
}
}
+
+function! {
+ /// `pagebreak`: Ends the current page.
+ #[derive(Debug, Default, Clone, PartialEq)]
+ pub struct PageBreakFunc;
+
+ parse(default)
+ layout(self, ctx, f) { vec![BreakPage] }
+}