Skip to content

Commit

Permalink
fix a formatting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jan 9, 2024
1 parent a454a2c commit aa3b585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ impl<'a> Formatter<'a> {
self.format_words(line, true, depth);
}
if !compact {
if prevent_compact {
if prevent_compact && start_line_pos > 0 {
self.output.push('\n');
}
for _ in 0..self.config.multiline_indent * depth.saturating_sub(1) {
Expand Down

0 comments on commit aa3b585

Please sign in to comment.