From c10cefffb6b9a7bfd0cac026fedc5bc60b3e7bed Mon Sep 17 00:00:00 2001 From: marc2332 Date: Sat, 9 Dec 2023 11:46:30 +0100 Subject: [PATCH] fix: Disabling short-children inlining when inline attributes is disabled --- packages/autofmt/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/autofmt/src/lib.rs b/packages/autofmt/src/lib.rs index 0c3fe6bb8..19d870653 100644 --- a/packages/autofmt/src/lib.rs +++ b/packages/autofmt/src/lib.rs @@ -140,7 +140,7 @@ pub fn write_block_out(body: CallBody) -> Option { } fn write_body(buf: &mut Writer, body: &CallBody) { - if buf.is_short_children(&body.roots).is_some() { + if buf.is_short_children(&body.roots).is_some() && !buf.out.indent.inline_attributes() { // write all the indents with spaces and commas between for idx in 0..body.roots.len() - 1 { let ident = &body.roots[idx];