From b9aab22d569c4ffe4d4f544a778bf07441ccf118 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Jul 2020 10:33:32 +0200 Subject: No blank indent --- crates/expect/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/expect/src') diff --git a/crates/expect/src/lib.rs b/crates/expect/src/lib.rs index a5e26fade..7579a5027 100644 --- a/crates/expect/src/lib.rs +++ b/crates/expect/src/lib.rs @@ -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(" "); } -- cgit v1.2.3