1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

feat: expand multi element attr sets

This commit is contained in:
Kevin Amado 2022-01-29 16:44:42 -05:00
parent dd5defc871
commit d4decc99fa
No known key found for this signature in database
GPG key ID: FFF341057F503148

View file

@ -8,6 +8,13 @@ pub fn rule(
let layout = if children.has_comments() {
&crate::config::Layout::Tall
} else if node
.children()
.filter(|node| node.kind() == rnix::SyntaxKind::NODE_KEY_VALUE)
.count()
> 1
{
&crate::config::Layout::Tall
} else {
build_ctx.config.layout()
};