fix: short expr lists should not eat the final exprs

This commit is contained in:
Jonathan Kelley committed 2023-01-16 17:25:55 -08:00
1 parent b6e4db1f2f
commit b81eca0433
4 files changed
+31 -31

No files matched your search

+2 -4
View File
@@ -328,10 +328,8 @@ impl Writer<'_> {
None
}
}
[BodyNode::RawExpr(ref expr)] => {
// TODO: let rawexprs to be inlined
get_expr_length(expr)
}
// TODO: let rawexprs to be inlined
[BodyNode::RawExpr(ref expr)] => get_expr_length(expr),
[BodyNode::Element(ref el)] => {
let attr_len = self.is_short_attrs(&el.attributes);