aboutsummaryrefslogtreecommitdiff
path: root/crates/expect
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-09 09:33:32 +0100
committerAleksey Kladov <[email protected]>2020-07-09 09:33:32 +0100
commitb9aab22d569c4ffe4d4f544a778bf07441ccf118 (patch)
treef9ca6a356d794239434a7ef1c9a8ba749834c5f6 /crates/expect
parentc66812193e7cb83939367227393e0eab047e12ce (diff)
No blank indent
Diffstat (limited to 'crates/expect')
-rw-r--r--crates/expect/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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 {
275 } 275 }
276 let mut final_newline = false; 276 let mut final_newline = false;
277 for line in lines_with_ends(patch) { 277 for line in lines_with_ends(patch) {
278 if is_multiline { 278 if is_multiline && !line.trim().is_empty() {
279 buf.push_str(indent); 279 buf.push_str(indent);
280 buf.push_str(" "); 280 buf.push_str(" ");
281 } 281 }