palantir-java-format icon indicating copy to clipboard operation
palantir-java-format copied to clipboard

string block collaps on empty line

Open Pankraz76 opened this issue 8 months ago • 0 comments

when removing // tmp fix comment the block collapses like seen below:

            {
                {
                    """
                    import java.util.List;
                    import java.lang.Deprecated;

                    @Deprecated
                    class Test {}
                    """
                },
                // fixme:
                //  this is a bug in formatter
                //  when line is not blank but having white spaced block remains stable
                {
                    """
                    // tmp fix 
                    @Deprecated
                    class Test {}
                    """
                },
                {"""

                @Deprecated
                class Test {}
                """}
            },
  • https://github.com/palantir/palantir-java-format/pull/1337/files#r2182497166

Pankraz76 avatar Jul 03 '25 11:07 Pankraz76