feat: --inline-attributes option for autofmt

This commit is contained in:
marc2332 committed 2023-12-09 11:16:26 +01:00
1 parent 544ca55596
commit 52cb5ff951
5 files changed
+48 -20

No files matched your search

+3
View File
@@ -15,6 +15,7 @@ pub fn format_rsx(raw: String, use_tabs: bool, indent_size: usize) -> String {
IndentType::Spaces
},
indent_size,
false,
),
);
block.unwrap()
@@ -32,6 +33,7 @@ pub fn format_selection(raw: String, use_tabs: bool, indent_size: usize) -> Stri
IndentType::Spaces
},
indent_size,
false,
),
);
block.unwrap()
@@ -67,6 +69,7 @@ pub fn format_file(contents: String, use_tabs: bool, indent_size: usize) -> Form
IndentType::Spaces
},
indent_size,
false,
),
);
let out = dioxus_autofmt::apply_formats(&contents, _edits.clone());