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
Similar to #1195, we're seeing gjf 1.25.1 failing on some specific text blocks:
publicinterfaceFoo {
privatestaticStringfoo =
""" foo\ bar """;
}
Note the extra space at the end of the text block.
Fails with:
Foo.java:error: Something has gone terribly wrong. We planned to make the below formatting change, but have aborted because it would unexpectedly change the AST.
Please file a bug: https://github.com/google/google-java-format/issues/new
=== Actual: ===
public interface Foo {
private static String foo = "foobar ";
}
=== Expected: ===
public interface Foo {
private static String foo = "foobar";
}
The text was updated successfully, but these errors were encountered:
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
Similar to #1195, we're seeing gjf 1.25.1 failing on some specific text blocks:
Note the extra space at the end of the text block.
Fails with:
The text was updated successfully, but these errors were encountered: