Trailing whitespacesSee original GitHub issue
I quite liked your package and decided to use it as a replacement for
language-gfm. However, after a short while I noticed that the trailing spaced started to disappear on save. This is because of a default behaviour in Atom’s
workspace package. I tried to disable this by doing what they suggest in readme:
"*": ... whitespace: ".text.md": removeTrailingWhitespace: false
Tried a few other ways of expressing my intention in the config, but none worked. Unfortunately, I had to give up and return to gfm, since restoring the whitespaces before every commit is a pain. Could you please update the docs or implement something to make it possible to keep the spaces before the newline characters?
I imagine this can be possible already. In this case the path to the solution is probably too complex or unclear.
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
I think the “error” is in your
config.cson. The setting doesn’t seem to work as part of the
* scope, but it does (for me) in the
.md.text scope. If you scroll quite far down in
config.cson you’ll find that particular key there, otherwise add it yourself. The correct config should then be (or at least, this is what works for me):
".md.text": whitespace: removeTrailingWhitespace: false
Make sure that there is no leading whitespace, otherwise you’re in some other scope.
Update FAQ and README