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

embedded newline in Python code causes next line indent to be wrong #4874

Closed
hayne opened this issue Mar 21, 2019 · 1 comment
Closed

embedded newline in Python code causes next line indent to be wrong #4874

hayne opened this issue Mar 21, 2019 · 1 comment

Comments

@hayne
Copy link

hayne commented Mar 21, 2019

Issue Type: Bug

If there is an embedded (explicit) newline in a string in a Python statement,
the auto-indent of the next line is wrong.
Example:
print("aaa\nbbb")
Pressing return/enter after the above line causes the indent to be several spaces in from the left margin.
This doesn't happen with the following statement where the newline is replaced by a space:
print("aaa bbb")

Extension version: 2019.2.5558
VS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T22:46:48.547Z)
OS version: Darwin x64 18.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2700)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (2.54GB free)
Process Argv -psn_0_4178940
Screen Reader no
VM 0%
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Mar 21, 2019
@DonJayamanne
Copy link

Duplicate of #4563

@DonJayamanne DonJayamanne marked this as a duplicate of #4563 Mar 21, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Mar 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants