Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fireattack opened this issue Jun 17, 2019 · 3 comments
Closed

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

fireattack opened this issue Jun 17, 2019 · 3 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@fireattack
Copy link

fireattack commented Jun 17, 2019

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
@fireattack fireattack added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jun 17, 2019
@fireattack
Copy link
Author

probably related: #3284

@fireattack fireattack changed the title Wrong intent after line break a string with backslash Wrong intent after line break after a string with backslash Jun 17, 2019
@fireattack fireattack changed the title Wrong intent after line break after a string with backslash Wrong intent when line break after a string with backslash Jun 17, 2019
@DonJayamanne DonJayamanne changed the title Wrong intent when line break after a string with backslash Wrong indent when line break after a string with backslash Jun 17, 2019
@DonJayamanne
Copy link

Duplicate of #3284

@DonJayamanne DonJayamanne marked this as a duplicate of #3284 Jun 17, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jun 17, 2019
@fireattack
Copy link
Author

fireattack commented Jun 17, 2019

Ah, I just realize it's caused by a patch (#3915) for that issue, and is a duplicate of #4241 (so is #4563).

@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants