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

Space removed around plus operator on wrapped line #5

Open
avancil opened this issue Sep 28, 2022 · 0 comments
Open

Space removed around plus operator on wrapped line #5

avancil opened this issue Sep 28, 2022 · 0 comments

Comments

@avancil
Copy link

avancil commented Sep 28, 2022

  • PyDev Formatter version: Included in PyDev 9.3.0.220203051235
  • Python version: 3.10.7 (via pyenv)
  • Operating System: Ubuntu 20.04

Description

In the Eclipse preferences (PyDev>Editor>Code Style>Code Format), I have the "Use space before and after operators" checked. However, when I format code where a line has been wrapped with several instances of the "+" operator, the space after the operator gets removed.

Apparently it's getting confused between cases where we are adding things, and cases where "+" is the sign.

What I Did

This code:

result = some_function(some_list_with_a_long_name
                       + some_other_list_with_a_long_name
                       + yet_another_list)

gets formatted like this:

result = some_function(some_list_with_a_long_name
                       +some_other_list_with_a_long_name
                       +yet_another_list)
                        ^
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

1 participant