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.

Trailing whitespace removed in multiline strings #170

@gregreen

Description

@gregreen

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.

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