Skip to content

Python code isn't being indented #2427

Open

Description

Description

When writing a code block in python, the lines aren't being automatically indented when needed. I'm not sure about this, but I'm also afraid that this might happen with other languages that rely on new lines instead of brackets.

Steps to reproduce

  1. Insert a python code block
  2. Write a random code: x = 0
  3. Write a code that requires indentation:
    if x == 0:
    print(x)

Expected behavior:

print(x) should be indented

Actual behavior:

print(x) appears at the same level

Versions

  • Mark Text version: 0.16.2.2126
  • Operating system: windows 10

Activity

  1. Jocs commented on Jan 17, 2022

    @Jocs
    Member

    Do you want to indent print(x) when press enter and the cursor is at the end of if x == 0?

  2. Jocs commented on Jan 17, 2022

    @Jocs
    Member

    We can only distinguish the brackets, and indent the next line, and PR is welcomed.

  3. added
    🦋 optimization
    on Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🦋 optimization

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions