Skip to content

CSharpier keeps adding a newline every time a file is formatted #1408

Closed
@bvanreeven

Description

@bvanreeven

Input:

Given the following, already correctly formatted, C# file:

using System;

namespace MyCompany.MyNamespace;

// Comment block

Running CSharpier (v0.30.3) on the file (with the --no-cache flag) will add a newline between the namespace and the comment block every time the file is formatted.

Also, running CSharpier with the --check flag will mark the file as having a formatting issue.

Output:

  • A newline is added to the file every time it is formatted.

Expected behavior:

  • The file remains formatted the same way, even when running CSharpier multiple times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions