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

Trivial: Remove trailing whitespace in test/error_messages.coffee #4407

Merged
merged 1 commit into from Dec 21, 2016
Merged

Trivial: Remove trailing whitespace in test/error_messages.coffee #4407

merged 1 commit into from Dec 21, 2016

Conversation

connec
Copy link
Collaborator

@connec connec commented Dec 21, 2016

Trailing whitespace is generally considered 'bad style' and is often linted against or even simply removed by text editors.

One of the tests in test/error_messages.coffee depended on trailing whitespace, making the file tricky to work with for people whose editor is configured to remove trailing whitespace. The alternative is to use a literal "\n" and escape the line break.

I suppose this is personal preference, but given the proliferation of tools to remove trailing whitespace it makes sense to not depend on them when there's an alternative.

Trailing whitespace is generally considered 'bad style' and is often
linted against or even simply removed by text editors.

One of the tests in test/error_messages.coffee depended on trailing
whitespace, making the file tricky to work with for people whose
editor is configured to remove trailing whitespace. The alternative is
to use a literal "\n" and escape the line break.
@jashkenas jashkenas merged commit ebb56e0 into jashkenas:master Dec 21, 2016
@GeoffreyBooth
Copy link
Collaborator

Thanks, this has been driving me nuts.

@connec connec deleted the improve-test-with-whitespace branch December 23, 2016 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants