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

Exploding short arguments after multi-line string #945

Closed
moredatarequired opened this issue Jul 25, 2019 · 1 comment
Closed

Exploding short arguments after multi-line string #945

moredatarequired opened this issue Jul 25, 2019 · 1 comment

Comments

@moredatarequired
Copy link

moredatarequired commented Jul 25, 2019

Operating system: Ubuntu 18.04.2
Python version: 3.6.8
Black version: 19.3b0
Does also happen on master: Yes (tested on black.now.sh/?version=master)

This might be a duplicate of #789 , and/or intended behavior, but I don't understand it.

Input:

msg = """
Message {foo} over three lines.
""".format(foo)

Actual output:

msg = """
Message {foo} over three lines.
""".format(
    foo
)

Expected output:
(no change)

If this is the intended behavior, could you explain the rationale? The style guide doesn't seem (to me) to indicate that black will make this change.

@zsol
Copy link
Collaborator

zsol commented Jul 30, 2019

Duplicate of #256.

@zsol zsol closed this as completed Jul 30, 2019
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