No blank indent

This commit is contained in:
Aleksey Kladov 2020-07-09 10:33:32 +02:00
parent c66812193e
commit b9aab22d56

View file

@ -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(" ");
}