diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-16 12:47:14 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-16 12:47:14 +0100 |
| commit | 79638d4bbdc140a8dca0ccfdf70ffd607d5da251 (patch) | |
| tree | 3da8a7d345ccac389d07c8327d9c63fd7209a250 /src/library/pad.rs | |
| parent | 73c4701749ac3919c5b845002052326502c67306 (diff) | |
Don't wrap already layoutable nodes into flows/pars unnecessarily
Diffstat (limited to 'src/library/pad.rs')
| -rw-r--r-- | src/library/pad.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/library/pad.rs b/src/library/pad.rs index 88f8c562..1ec1b4a2 100644 --- a/src/library/pad.rs +++ b/src/library/pad.rs @@ -17,10 +17,7 @@ pub fn pad(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> { ); Ok(Value::Template(Template::from_inline(move |style| { - PadNode { - padding, - child: body.to_flow(style).pack(), - } + PadNode { padding, child: body.pack(style) } }))) } |
