Skip to content

Incorrect indentation after string literals containing escaped characters #4241

Description

@caudate-julie

Steps to reproduce:

  1. Type string with '\n' in it, press Enter.
a = '\n'

Same for double quotes.

Expected behaviour

a = '\n'
<--- cursor should be here

Actual behaviour

a = '\n'
    <--- cursor is here

Environment data

  • VS Code version: 1.30.2
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7
  • Type of virtual environment used: N/A
  • Relevant/affected Python packages and their versions: none

Logs

Console:

Starting Jedi Python language engine.

Linter 'pylint' is not installed. Please install it or select another linter".
Error: Module 'pylint' not installed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions