You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trailing spaces be removed on save from all files except Markdown files.
Ideally Markdown files would remove all trailing spaces except double spaces ("hard-breaks")
Actual Behaviour
All trailing white space is removed from all files on save.
The text was updated successfully, but these errors were encountered:
Discovered something that seems to work. I consider this a workaround and not a proper solution. I also suspect this is an IDEA issue and not a Markdown Navigator issue.
Editor > General: Other: Strip trailing spaces on Save: None
Note that the EditorConfig plugin and configuration file are still enabling white space trimming but with an exception for Markdown files.
I am now getting my expected behaviour although not my ideal behaviour. That is, white space is trimmed in all files as expected however not in Markdown files. Ideally Markdown files would remove all trailing spaces except double spaces ("hard-breaks").
BTW, if you set keep hard breaks in Markdown code style then you can enable trailing space stripping in editor config. It will strip all but 2 spaces on lines where they are significant and remove them where they are not, like on the last line of a paragraph.
Software Versions
PhpStorm 2019.1
Markdown Navigator 2.8.4.12
Settings
Editor > General: Other: Strip trailing spaces on Save: All
Editor > Code Style > Markdown: Document: Trailing Spaces: Document: Keep line breaks
Editor > Code Style: General: EditorConfig: Enable EditorConfig support: enabled
.editorconfig
Expected Behaviour
Trailing spaces be removed on save from all files except Markdown files.
Ideally Markdown files would remove all trailing spaces except double spaces ("hard-breaks")
Actual Behaviour
All trailing white space is removed from all files on save.
The text was updated successfully, but these errors were encountered: