Skip to content

string block collaps on empty line #1343

Open
openjavaformat/open-java-format
#46

Description

@Pankraz76

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 {}
                """}
            },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions