Atom: Atom automatically changes line endings in the file (0.116.0)

Created on 22 Jul 2014  路  3Comments  路  Source: atom/atom

There are these red blocks at the end of some lines when I open the file.
screenshot from 2014-07-22 11 48 02
If I hit save, they all disappear and suddenly I have a couple of hundred lines changed.
screenshot from 2014-07-22 11 48 07
Can someone explain what just happened here and how I can make atom not do that?
Thanks

Most helpful comment

Which theme are you using?

I'm guessing those red blocks are trailing whitespace, and those get removed by the Whitespace package by default. You can turn this behavior off in the settings for the Whitespace package, there's a Remove Trailing Whitespace config.

Let me know if this doesn't explain the behavior you observed.

All 3 comments

Which theme are you using?

I'm guessing those red blocks are trailing whitespace, and those get removed by the Whitespace package by default. You can turn this behavior off in the settings for the Whitespace package, there's a Remove Trailing Whitespace config.

Let me know if this doesn't explain the behavior you observed.

You also might be interested in this issue on the Whitespace package's repository: https://github.com/atom/whitespace/issues/10

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

Was this page helpful?
0 / 5 - 0 ratings