Skip to content

Commit

Permalink
Avoid extra newline between diagnostics in grouped mode
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jun 1, 2023
1 parent 1156c65 commit 358d00a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/ruff/src/message/grouped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,9 @@ impl Display for DisplayGroupedMessage<'_> {
if self.show_source {
use std::fmt::Write;
let mut padded = PadAdapter::new(f);
write!(padded, "{}", MessageCodeFrame { message })?;
writeln!(padded, "{}", MessageCodeFrame { message })?;
}

writeln!(f)?;

Ok(())
}
}
Expand Down

0 comments on commit 358d00a

Please sign in to comment.