Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

spaces were deleted after saving a document #285

Closed
squeezer44 opened this issue Jul 10, 2019 · 1 comment
Closed

spaces were deleted after saving a document #285

squeezer44 opened this issue Jul 10, 2019 · 1 comment

Comments

@squeezer44
Copy link

Systemenvironment

OS: Windows 10 Pro
Installed AtomVersion: 1.33.0 x64
Installed PackageVersion: markdown-writer 2.11.6

Description of unexpected effect

Typing a few lines, put 2 spaces at the end of the last line (to initiate a newline return).
Save the file deletes the 2 spaces (and the newline return of the previous lines disappeared).

Expected behaviour

Saving the document doesn't delete the previous set newline returns.

Question

  1. What occures that effect?
  2. How can it be avoided?
@squeezer44
Copy link
Author

squeezer44 commented Jul 11, 2019

Questions are answered:
ad 1. The atom package whitespace occured the effect. It was configured at:
removeTrailingWhitespace: true in config.cson
That occured the deletion of ending 2 whitespaces when saving a md-document.

ad 2. Can be avoided by setting removeTrailingWhitespace: false in config.cson.

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

1 participant