Skip to content

Wrong indent when line break after a string with backslash #6039

@fireattack

Description

@fireattack

Environment data

  • VS Code version: 1.35
  • Extension version (available under the Extensions sidebar): 2019.5.18875
  • OS and version: Win 7 x64
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): n/
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): true

Expected behaviour

a = 'a\\b'
# <==intent should be at the very left

Actual behaviour

image

Steps to reproduce:

  1. type a = 'a\\b'
  2. Press Enter

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions