rename to split-line-attributes

This commit is contained in:
marc2332 committed 2023-12-09 16:51:41 +01:00
1 parent c10cefffb6
commit ce5d7bd11b
5 files changed
+26 -21

No files matched your search

+3 -1
View File
@@ -140,7 +140,9 @@ pub fn write_block_out(body: CallBody) -> Option<String> {
}
fn write_body(buf: &mut Writer, body: &CallBody) {
if buf.is_short_children(&body.roots).is_some() && !buf.out.indent.inline_attributes() {
let is_short = buf.is_short_children(&body.roots).is_some();
let is_empty = buf.is_empty_children(&body.roots);
if (is_short && !buf.out.indent.split_line_attributes()) || is_empty {
// write all the indents with spaces and commas between
for idx in 0..body.roots.len() - 1 {
let ident = &body.roots[idx];