Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Strips trailing whitespace when leave line #175

Open
1 task done
AlexWayfer opened this issue Apr 27, 2018 · 5 comments
Open
1 task done

Strips trailing whitespace when leave line #175

AlexWayfer opened this issue Apr 27, 2018 · 5 comments

Comments

@AlexWayfer
Copy link

Prerequisites

Description

Hello!

Stripping trailing whitespaces is cool, but I would like to have this at every cursor moving, before file saving.

Steps to Reproduce

  1. Write line of code on the some level of indentation.
  2. Write another line of code after one empty line.
  3. Get warnings from linters about trailing whitespaces.

Expected behavior: [What you expect to happen]

Move cursor vertically at indentation level, but don't leave trailing whitespaces.

Actual behavior: [What actually happens]

There are trailing whitespaces until file saving:

image

Reproduces how often: [What percentage of the time does it reproduce?]

100%

Versions

Arch Linux.

> atom --version
Atom    : 1.26.0
Electron: 1.8.4
Chrome  : 59.0.3071.115
Node    : 8.2.1

> apm --version
apm  1.19.0
npm  5.8.0
node 9.11.1 x64
atom 1.26.0
python 2.7.14
git 2.17.0

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@Aerijo
Copy link

Aerijo commented Aug 16, 2018

@AlexWayfer I can't reproduce this; whitespace is removed when leaving a blank line for me. Does this still happen with the latest version of Atom?

@AlexWayfer
Copy link
Author

@AlexWayfer I can't reproduce this; whitespace is removed when leaving a blank line for me. Does this still happen with the latest version of Atom?

Yep. Maybe we can't understand each other?

peek 2018-08-16 13-34

atom --version
Atom    : 1.29.0
Electron: 2.0.7
Chrome  : 61.0.3163.100
Node    : 8.9.3

> apm --version
apm  1.19.0
npm  6.4.0
node 10.8.0 x64
atom 1.29.0
python 2.7.15
git 2.18.0

@Aerijo
Copy link

Aerijo commented Aug 16, 2018

ezgif com-video-to-gif

I don't have a linter on, but invisibles are shown. This was a new CSS file, and Atom was in safe mode. Does safe mode have any effect for you?

@AlexWayfer
Copy link
Author

OK, the new CSS file in the Atom safe mode: the same, uh.

peek 2018-08-16 13-47

Also for soft indentation:

peek 2018-08-16 13-48

@AlexWayfer
Copy link
Author

Is it bug?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants