Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Trailing whitespace removed in multiline strings #170

Open
gregreen opened this issue Jan 11, 2018 · 1 comment
Open

Trailing whitespace removed in multiline strings #170

gregreen opened this issue Jan 11, 2018 · 1 comment

Comments

@gregreen
Copy link

Atom removes trailing whitespace, even in the middle of multiline strings. For example, the following Python code is mangled by atom:

s = """Hello, 
world!"""

Note the space after "Hello," If this whitespace is important, this is a problem. I've run into this problem when trying to write documentation with pygments, which styles the strings ">>>" and ">>> " differently.

I understand that the Atom team considers trailing whitespace to be poor coding style, but it should be preserved inside strings, where removing it can alter program functionality.

@Cohen-Carlisle
Copy link

I'd love to see this enhancement as an option to enable/disable specifically inside strings. I had to turn off trimming trailing whitespace while working on this kata, but that turned if off globally which was annoying outside the strings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants