Skip to content

Request: Remove trailing white spaces #20

@SimplyBob

Description

@SimplyBob

First, thanks for making and maintaining this. This largely matches the "pretty" format I was looking for.

One problem I've come across is trailing white spaces behind commas at the end of lines. As a solution, I've been cleaning it up with sed....which is a little hacky, but I've been unable to modify the code the way I'd like it. The reason this is a problem is because at work we have git hooks in place that flag on formatting issues - and this is one.

sed -i "" 's/[[:space:]]*$//' file.json

If you could assist, that would be appreciated.

Thanks,
James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions