Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double line break before list literal #1351

Open
maurobringolf opened this issue Sep 23, 2024 · 0 comments
Open

Double line break before list literal #1351

maurobringolf opened this issue Sep 23, 2024 · 0 comments
Milestone

Comments

@maurobringolf
Copy link

We have this issue in various places in our code, I reduced it to a minimal example:

Input:

With default settings in playground (print width 100, indent size 4)

public class ClassName {
    public A[] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA = 
    [
        []
    ];
}

Output:

public class ClassName
{
    public A[] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA =

        [
            [],
        ];
}

Expected behavior:

public class ClassName
{
    public A[] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA =
        [
            [],
        ];
}
@belav belav added this to the 1.0.0 milestone Sep 24, 2024
belav added a commit that referenced this issue Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants