summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2023-07-06 13:51:28 +0200
committerGitHub <noreply@github.com>2023-07-06 13:51:28 +0200
commit07553cbe71cab60d1a29b72dc2ffbf25f0f3619c (patch)
treebd049508b211ee61a3f636b5d1c2cb72153f318d /crates/typst-library/src/layout
parent076ef3d5f25bdb48f4f33d5bb20b3cc2b64e11a1 (diff)
Raw syntax definition loading (#1655)
Diffstat (limited to 'crates/typst-library/src/layout')
-rw-r--r--crates/typst-library/src/layout/par.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-library/src/layout/par.rs b/crates/typst-library/src/layout/par.rs
index 6b914e80..6b862a23 100644
--- a/crates/typst-library/src/layout/par.rs
+++ b/crates/typst-library/src/layout/par.rs
@@ -119,11 +119,11 @@ pub struct ParElem {
}
impl Construct for ParElem {
- fn construct(_: &mut Vm, args: &mut Args) -> SourceResult<Content> {
+ fn construct(vm: &mut Vm, args: &mut Args) -> SourceResult<Content> {
// The paragraph constructor is special: It doesn't create a paragraph
// element. Instead, it just ensures that the passed content lives in a
// separate paragraph and styles it.
- let styles = Self::set(args)?;
+ let styles = Self::set(vm, args)?;
let body = args.expect::<Content>("body")?;
Ok(Content::sequence([
ParbreakElem::new().pack(),