Skip to content

Space removed around plus operator on wrapped line #5

@avancil

Description

@avancil
  • 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)
                        ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions