about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNick Cameron <nrc@ncameron.org>2018-10-29 11:29:51 +1300
committerGitHub <noreply@github.com>2018-10-29 11:29:51 +1300
commit1f64f4012fcd99c628f76455328c52c730bd2eab (patch)
tree69dee6fb2703c9390a1a689f6d877541cb2440c3 /src
parentbdd40493ca002513b534bf55f0e63f891e1ca177 (diff)
parent00a20bceff40e98034a7346e5cc6319cbd2d21b7 (diff)
Merge pull request #3141 from dfyz/issue-2810
Try to fix formatting failures on Windows (issue #2810)
Diffstat (limited to 'src')
-rw-r--r--src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macros.rs b/src/macros.rs
index d378bb8ffb1..43f3071b70a 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -1347,7 +1347,7 @@ impl MacroBranch {
             .fold(
                 (String::new(), true),
                 |(mut s, need_indent), (i, (kind, ref l))| {
-                    if !l.is_empty()
+                    if !is_empty_line(l)
                         && need_indent
                         && !new_body_snippet.is_line_non_formatted(i + 1)
                     {