diff options
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 1a211670..4f8961cc 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -142,6 +142,10 @@ impl Eval for Spanned<&NodeRaw> { })); } + if self.v.block { + ctx.apply_parbreak(); + } + ctx.push(NodeStack { dirs: ctx.state.dirs, align: ctx.state.align, @@ -149,6 +153,10 @@ impl Eval for Spanned<&NodeRaw> { children, }); + if self.v.block { + ctx.apply_parbreak(); + } + ctx.state.font.families = prev; } } @@ -466,8 +474,8 @@ impl Eval for Spanned<&ExprFor> { iterate!(for (k => key, v => value) in dict.into_iter()) } - (ForPattern::KeyValue(..), Value::Str(_)) - | (ForPattern::KeyValue(..), Value::Array(_)) => { + (ForPattern::KeyValue(_, _), Value::Str(_)) + | (ForPattern::KeyValue(_, _), Value::Array(_)) => { ctx.diag(error!(self.v.pat.span, "mismatched pattern")); Value::Error } |
