summaryrefslogtreecommitdiff
path: root/src/library/pad.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/pad.rs')
-rw-r--r--src/library/pad.rs5
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) }
})))
}