summaryrefslogtreecommitdiff
path: root/src/library/transform.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-16 12:47:14 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-16 12:47:14 +0100
commit79638d4bbdc140a8dca0ccfdf70ffd607d5da251 (patch)
tree3da8a7d345ccac389d07c8327d9c63fd7209a250 /src/library/transform.rs
parent73c4701749ac3919c5b845002052326502c67306 (diff)
Don't wrap already layoutable nodes into flows/pars unnecessarily
Diffstat (limited to 'src/library/transform.rs')
-rw-r--r--src/library/transform.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/transform.rs b/src/library/transform.rs
index 20d2bc1d..85d65703 100644
--- a/src/library/transform.rs
+++ b/src/library/transform.rs
@@ -9,7 +9,7 @@ pub fn move_(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
Ok(Value::Template(Template::from_inline(move |style| {
MoveNode {
offset: Spec::new(x, y),
- child: body.to_flow(style).pack(),
+ child: body.pack(style),
}
})))
}