You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
cnpryer
changed the title
Formatter removes line break between string and string with format method
Formatter removes line break between implicitly concatenated strings with format method
Sep 1, 2023
cnpryer
changed the title
Formatter removes line break between implicitly concatenated strings with format method
Formatter removes line break between implicitly concatenated strings
Sep 1, 2023
Black applies special formatting for strings inside binary expressions. We have a "cheap" implementation that works for the most simple cases but it falls short in more complicated settings. I hope to have a fix for this by next week.
We're marking this as an intentional deviation, since the resulting code doesn't exceed line width and reduces vertical spacing. (If you make the strings longer, we do split and format identically to Black.)
Couldn't find an exact issue, but I'm almost certain this has been reported already.
Maybe related to #6936
Also see #5893
Line-length: 88
Black (23.7.0):
Ruff (0.0.287):
Playground: https://play.ruff.rs/126e4315-3c75-4268-b43a-12586c5da779
The text was updated successfully, but these errors were encountered: