Fix else emit

This commit is contained in:
Rerumu 2021-11-24 02:08:02 -05:00
parent 0fb0aee536
commit be80da8163

View File

@ -298,6 +298,8 @@ impl If {
self.truthy.iter().try_for_each(|s| s.output(d, w))?; self.truthy.iter().try_for_each(|s| s.output(d, w))?;
if let Some(v) = &self.falsey { if let Some(v) = &self.falsey {
write!(w, "else ")?;
v.iter().try_for_each(|s| s.output(d, w))?; v.iter().try_for_each(|s| s.output(d, w))?;
} }