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
@rafaelpedretti-toast I don't think this is the same issue. The bug before was that when using --trimwhitespace nonblank-lines the indent rule could cause multiline string literals not to compile due to inconsistently indented white space.
But if I understand the issue in your video, it's that SwiftFormat is trimming leading whitespace from a blank line in a multiline string literal, which is by design, and doesn't cause any compilation problems as far as I know?
If you want to preserve that space you can use --trimwhitespace nonblank-lines. If you want to be able to preserve leading whitespace only for blank lines inside string literals, can you open a feature request? (but also, why?)
It seems that issue #1382 is happening again on version 0.53.9
Screen.Recording.2024-05-15.at.11.25.37.mov
The text was updated successfully, but these errors were encountered: