Closed ulybu closed 7 years ago
Markdown files are similarly having trailing 2 spaces removed from lines with the 'Keep Markdown Line Break Whitespace' option turned on. I think there might be a larger underlying bug.
Atom : 1.9.6
Your Atom version is approximately a year old - the latest Atom version is currently Atom 1.19.2. If you can still reproduce this on that version, I'll be happy to reopen this issue.
I'm not sure about the original bug, but my comment still stands on version 1.19.0 x64
@blakewhite Whoops, thought you two were the same person! If you're using language-markdown
, please follow https://github.com/burodepeper/language-markdown/blob/master/FAQ.md#trailing-whitespace-is-automatically-removed-but-i-dont-want-that.
I have no idea how you closed this without even testing man, this is still an issue with atom 1.23.1
result of scope Descriptor:
scopes:
0: "text.html.ruby"
1: "source.ruby.rails.embedded.html"
2: "string.quoted.single.ruby"
3: "punctuation.definition.string.begin.ruby"
relevant config.cson
"text.html.ruby":
whitespace:
ensureSingleTrailingNewline: false
removeTrailingWhitespace: false
"text.plain":
whitespace:
ensureSingleTrailingNewline: false
removeTrailingWhitespace: false
as you can see text.html.ruby is clearly a scope of the file i am using, yet setting ensureSingleTrailingNewline: false
does absolutely nothing. Whitespace keeps adding the newline anyways
disabled entire package until this is properly fixed
@SampsonCrowley please open a new issue so that we can ensure that all the prerequisites have been followed. Thanks!
no need. after looking at some other sls's i have text.html.ruby
should have been .text.html.ruby
Prerequisites
..
Description
2 . Can't disabled auto removal of trailing whitespaces for a specific language (syntax-scoped properties) with
Steps to Reproduce
Expected behavior: trailing whitespace shouldn't be removed on save
Actual behavior: trailing is removed on save
Reproduces how often: On my setup: everytime
Versions
Ubuntu 16.04 LTS Whitespace 0.32.2 atom-pug 0.2.0
Additional Information
Haven't try that with other OS/config