text.md
scope #185Description
Edit by @rsese to describe the larger issue
As mentioned in #185 (comment):
It's not as much that
language-markdown
doesn't respect the setting, butwhitespace
should now also work within thetext.md
scope.
I believe #177 was supposed to add this functionality so that the whitespace package worked with the text.md
scope but as mentioned in #185 (comment) (the author of #177), it looks like it may not have done what was intended.
The result is that if you use language-markdown
(as in this report), the whitespace package will still strip trailing whitespace on save in Markdown files even if you have Keep Markdown Line Break Whitespace
enabled.
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Whitespace is stripping trailing whitespaces in markdown files despited the settings.
Edit by @rsese: not reproducible in safe mode because it reproduces when you install and use https://atom.io/packages/language-markdown
Steps to Reproduce
- Edit a README.md for a project
- Put two whitespaces at end of line to indicate a line break.
- Save the file.
Expected behavior: The whitespace at the end of the line are ignored and and not deleted.
Actual behavior: The whitespaces are deleted. (The trailing whitespaces in the current line are ignored.) If the option "Remove Trailing Whitespace" or the package Whitespace is deactivated, the whitespaces remain.
Reproduces how often: 100.0000000%
Versions
Atom : 1.33.0
Electron: 2.0.11
Chrome : 61.0.3163.100
Node : 8.9.3
Whitespace: 0.37.7
OS: Mac OS Mohave 10.14.1
Additional Information
I can not reproduce the issue running Atom on Debian (Bunsen Labs).