diff options
-rw-r--r-- | crates/expect/src/lib.rs | 2 |
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 | } |