-
Notifications
You must be signed in to change notification settings - Fork 859
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an off-by-one bug with column limit handling for text blocks
PiperOrigin-RevId: 695348215
- Loading branch information
Showing
3 changed files
with
32 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
15 changes: 15 additions & 0 deletions
15
core/src/test/resources/com/google/googlejavaformat/java/testdata/B361077825.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,15 @@ | ||
class T { | ||
String a = | ||
""" | ||
# No implicit input file, because they can only be created outside a symbolic macro, | ||
"""; | ||
|
||
String b = | ||
""" | ||
# No implicit input file, because they can only be created outside a symbolic macro, | ||
"""; | ||
String c = | ||
""" | ||
# No implicit input file, because they can only be created outside a symbolic macro, | ||
"""; | ||
} |
15 changes: 15 additions & 0 deletions
15
core/src/test/resources/com/google/googlejavaformat/java/testdata/B361077825.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,15 @@ | ||
class T { | ||
String a = | ||
""" | ||
# No implicit input file, because they can only be created outside a symbolic macro, | ||
"""; | ||
|
||
String b = | ||
""" | ||
# No implicit input file, because they can only be created outside a symbolic macro, | ||
"""; | ||
String c = | ||
""" | ||
# No implicit input file, because they can only be created outside a symbolic macro, | ||
"""; | ||
} |