summaryrefslogtreecommitdiff
path: root/src/eval/walk.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/walk.rs')
-rw-r--r--src/eval/walk.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval/walk.rs b/src/eval/walk.rs
index 134f10c7..fe7f0e98 100644
--- a/src/eval/walk.rs
+++ b/src/eval/walk.rs
@@ -124,7 +124,7 @@ impl Walk for EnumNode {
fn walk_item(ctx: &mut EvalContext, label: EcoString, body: Template) {
ctx.template += Template::from_block(move |style| {
- let label = ParNode {
+ let label = Layout::pack(ParNode {
dir: style.par.dir,
leading: style.leading(),
children: vec![ParChild::Text(
@@ -132,13 +132,13 @@ fn walk_item(ctx: &mut EvalContext, label: EcoString, body: Template) {
style.aligns.inline,
Rc::clone(&style.text),
)],
- };
+ });
let spacing = style.text.size / 2.0;
GridNode {
tracks: Spec::new(vec![TrackSizing::Auto; 2], vec![]),
gutter: Spec::new(vec![TrackSizing::Linear(spacing.into())], vec![]),
- children: vec![label.pack(), body.to_flow(style).pack()],
+ children: vec![label, body.pack(style)],
}
});
}