zhuochun / md-writer

✒️ Make Atom a better Markdown/AsciiDoc editor for writers and bloggers
https://atom.io/packages/markdown-writer
MIT License
341 stars 46 forks source link

spaces were deleted after saving a document #285

Closed squeezer44 closed 5 years ago

squeezer44 commented 5 years ago

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 commented 5 years ago

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.