Skip to content

[folding] should not fold whitespace after function #3353

@Tyriar

Description

@Tyriar

Consider the Python script:

def a:
  pass



def b:
  pass

Currently all whitespace following the pass in a is collapsed with it:

image

This will make it the code harder to read in some cases as there is no space between the functions are the author intended, making a look more like part of b.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions