mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
No blank indent
This commit is contained in:
parent
c66812193e
commit
b9aab22d56
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ fn format_patch(line_indent: usize, patch: &str) -> String {
|
|||
}
|
||||
let mut final_newline = false;
|
||||
for line in lines_with_ends(patch) {
|
||||
if is_multiline {
|
||||
if is_multiline && !line.trim().is_empty() {
|
||||
buf.push_str(indent);
|
||||
buf.push_str(" ");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue