Skip to content

Drag and drop indent matching can be confused by empty blank lines #800

@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

It's common for blank lines not to be indented along with the rest of the code. In any case you can't tell the difference easily. We don't special case blank lines so we can end up matching their indent level when that isn't appropriate.

E.g.

while True:

    display.scroll("Drag above me note no spaces on previous line")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions