This is possibly not a bug, but the results are unexpected and don't really seem to improve readability. However feel free to close if this is actually correct.
Operating system: Fedora 28
Python version: 3.6.5
Black version: 18.5b0
Does also happen on master: yes
Formatting this file uses some extra unexpected new lines:
MULTILINE = """
foo
""".replace("\n", "")
@@ -1,4 +1,6 @@
MULTILINE = """
foo
-""".replace("\n", "")
+""".replace(
+ "\n", ""
+)
This is possibly not a bug, but the results are unexpected and don't really seem to improve readability. However feel free to close if this is actually correct.
Operating system: Fedora 28
Python version: 3.6.5
Black version: 18.5b0
Does also happen on master: yes
Formatting this file uses some extra unexpected new lines: