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

Closed
maurobringolf opened this issue Sep 23, 2024 · 0 comments · Fixed by #1371
Closed

Double line break before list literal #1351

maurobringolf opened this issue Sep 23, 2024 · 0 comments · Fixed by #1371
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
belav added a commit that referenced this issue Nov 2, 2024
shocklateboy92 added a commit that referenced this issue Nov 7, 2024
pisolofin pushed a commit to pisolofin/csharpier-editorconfig that referenced this issue Nov 16, 2024
@belav belav modified the milestones: 1.0.0, 0.30.0 Nov 17, 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

Successfully merging a pull request may close this issue.

2 participants