-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle removing trailing whitespace when the closing delimiter is on the same line as the final line of the text block. Fixes #1205 PiperOrigin-RevId: 705210587
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
core/src/test/resources/com/google/googlejavaformat/java/testdata/I1205.input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public interface Foo { | ||
|
||
private static String foo = | ||
""" | ||
foo\ | ||
bar """; | ||
} |
8 changes: 8 additions & 0 deletions
8
core/src/test/resources/com/google/googlejavaformat/java/testdata/I1205.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
public interface Foo { | ||
|
||
private static String foo = | ||
""" | ||
foo\ | ||
bar\ | ||
"""; | ||
} |