diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-09 09:34:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-09 09:34:12 +0100 |
commit | 9eb9b9df9f6adebb938029a86e47c0aa1eb0f678 (patch) | |
tree | f9ca6a356d794239434a7ef1c9a8ba749834c5f6 /crates/expect/src | |
parent | a61c8481571f8d8e6e08df9024d8dad5efc883de (diff) | |
parent | b9aab22d569c4ffe4d4f544a778bf07441ccf118 (diff) |
Merge #5276
5276: Streamline r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/expect/src')
-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 | } |