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

+1 -1
View File
@@ -102,7 +102,7 @@ impl Writer<'_> {
}
// multiline handlers bump everything down
if attr_len > 1000 {
if attr_len > 1000 || self.out.indent.inline_attributes() {
opt_level = ShortOptimization::NoOpt;
}