Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing whitespace in triple double quotes does not get cut #318

Closed
tweakimp opened this issue Jun 8, 2018 · 1 comment
Closed

Trailing whitespace in triple double quotes does not get cut #318

tweakimp opened this issue Jun 8, 2018 · 1 comment

Comments

@tweakimp
Copy link

tweakimp commented Jun 8, 2018

Operating system: Windows 10 x64
Python version: 3.6.5
Black version: 18.6b1
Does also happen on master: ✔️

Black does not change anything in this:

"""
This string has 
trailing whitespace 
in every but the last line.
"""

Is it supposed to be that way?

@ambv
Copy link
Collaborator

ambv commented Jun 8, 2018

Thanks for your interest in Black! 💯

As for your question: yes, all contents in a multiline strings is data. It would be invalid for Black to modify it because your application may depend on it being exactly as is.

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

No branches or pull requests

2 participants