fix: short expr lists should not eat the final exprs
This commit is contained in:
1 parent
b6e4db1f2f
commit
b81eca0433
4 files changed
+31
-31
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user