Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Whitespace-only lines are removed rather than trimmed on format #146

@Rua

Description

@Rua

When using the formatting tool (ctrl+shift+c), if there are any lines that consist only of whitespace, the entire line is removed. E.g. starting with

fn foo() {}

fn main() {}

with spaces or tabs on the second line, you end up with

fn foo() {}
fn main() {}

What should happen instead is that the trailing whitespace is removed, but the line isn't. Normal Rustfmt doesn't have this problem, so it seems to be an issue specific to the Atom plugin.

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