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
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Atom removes trailing whitespace, even in the middle of multiline strings. For example, the following Python code is mangled by atom:
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.
The text was updated successfully, but these errors were encountered: