csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Extra newline before collection expression in attributes

Open Rudomitori opened this issue 2 years ago • 0 comments

Input:

[AllowedExtensions(
    [
        ".txt",
        ".pdf",
        ".doc",
        ".jpeg",
        ".jpg",
        ".zip",
        ".7z",
        ".png",
        ".xlsx",
        ".xlx",
        ".docx",
        ".csv"
    ]
)]
async Task<FormResultDto> PatchResults(){}

Output:

[AllowedExtensions(

    [
        ".txt",
        ".pdf",
        ".doc",
        ".jpeg",
        ".jpg",
        ".zip",
        ".7z",
        ".png",
        ".xlsx",
        ".xlx",
        ".docx",
        ".csv"
    ]
)]
async Task<FormResultDto> PatchResults() { }

Expected behavior:

[AllowedExtensions(
    [
        ".txt",
        ".pdf",
        ".doc",
        ".jpeg",
        ".jpg",
        ".zip",
        ".7z",
        ".png",
        ".xlsx",
        ".xlx",
        ".docx",
        ".csv"
    ]
)]
async Task<FormResultDto> PatchResults(){}

Rudomitori avatar Jan 30 '24 08:01 Rudomitori