Finished transitioning to the new top-level ignored whitespace template element.

This commit is contained in:
Tom Alexander
2020-05-03 14:44:09 -04:00
parent 908ae078b0
commit bafff8e7a0
2 changed files with 97 additions and 91 deletions

View File

@@ -85,10 +85,8 @@ impl<'a> DustRenderer<'a> {
let mut output = String::new();
for elem in &body.elements {
match elem {
TemplateElement::TESpan(span) => span
.contents
.iter()
.for_each(|line: &&str| output.push_str(line)),
TemplateElement::TEIgnoredWhitespace(_) => {}
TemplateElement::TESpan(span) => output.push_str(span.contents),
TemplateElement::TETag(dt) => {
output.push_str(&self.render_tag(dt, context)?);
}