Skip to content

code folding fails with blank line #24121

@sylvain-bougnoux

Description

@sylvain-bougnoux

Pretty easy

def foo():
....pass
....
....pass

folds correctly, while

def foo():
....pass

....pass

does not, and just folds until the blank line (sees dot as spaces).
Of course I can add spaces, but my editor is configured to remove any ending spaces.

  • Spyder version: 6.0.1 (pip)
  • Python version: 3.10.5 64-bit
  • Qt version: 5.15.2
  • PyQt5 version: 5.15.11
  • Operating System: Windows-10-10.0.19045-SP0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions