8000 Whitespace stripped from markdown despite settings, doesn't work with `text.md` scope · Issue #185 · atom/whitespace · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Whitespace stripped from markdown despite settings, doesn't work with text.md scope #185
Open
@thoschworks

Description

@thoschworks

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, but whitespace should now also work within the text.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

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

  1. Edit a README.md for a project
  2. Put two whitespaces at end of line to indicate a line break.
  3. 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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0