Issue Type: Bug
tab ('\t') is not considered while printing the list in tabular format on the VSC Python Interactive environment.
To reproduce the issue, execute the below code and check the result on the VCS Python Interactive environment.
def display_table(in_list):
""" Function to display 2D list in tabular format """
for i in range(len(in_list[1])+1):
if i == 0:
print('\t', end='') ## <- This tab is not cosidered
else:
print(f'[{i-1}]', end='\t')
print()
for i, row in enumerate(in_list):
for j, value in enumerate(row):
if j==0:
print(f'[{i}]', end='\t')
print(f'{value}', end='\t')
print()
a = [[77, 68, 86, 73], [96, 87, 89, 81], [70, 90, 86, 81]]
display_table(a)
Extension version: 2020.5.80290
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:33:47.663Z)
OS version: Darwin x64 19.5.0
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2700)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled|
|Load (avg)|2, 2, 3|
|Memory (System)|16.00GB (0.10GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|

@hyderkh Thanks for the report on this. I actually repro the same issue, both in the interactive window and in our notebook editor. Looks like we might be accidentally stripping out leading whitespace.

@IanMatthewHuff Thanks for acknowledging the issue. Any idea by when it will be resolved?
Sorry not sure on that yet. We have a triage meeting on Thursday where we will discuss and prioritize new incoming issues.