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

Sometimes line is broken without indentation #783

Open
kbarros opened this issue Nov 27, 2023 · 2 comments
Open

Sometimes line is broken without indentation #783

kbarros opened this issue Nov 27, 2023 · 2 comments

Comments

@kbarros
Copy link

kbarros commented Nov 27, 2023

See below. Is the bottom example giving the desired behavior?

code = """
frst_very_very_long_name, scnd_very_very_long_name = scnd_very_very_long_name, frst_very_very_long_name
"""

# This seems reasonable
format_text(code) ==
"""
frst_very_very_long_name, scnd_very_very_long_name =
    scnd_very_very_long_name, frst_very_very_long_name
"""

# Should the line here be broken without indentation?
format_text(code, style=BlueStyle()) ==
"""
frst_very_very_long_name, scnd_very_very_long_name = scnd_very_very_long_name,
frst_very_very_long_name
"""
@domluna
Copy link
Owner

domluna commented Nov 27, 2023

this might be intentional for BlueStyle. @nickrobinson251

@nickrobinson251
Copy link
Contributor

i don't think BlueStyle says anything about this case. i'd probably expect it to be indented.

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

3 participants