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

Request: Remove trailing white spaces #20

Open
SimplyBob opened this issue Jul 19, 2019 · 0 comments
Open

Request: Remove trailing white spaces #20

SimplyBob opened this issue Jul 19, 2019 · 0 comments

Comments

@SimplyBob
Copy link

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

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

No branches or pull requests

1 participant