INGInious icon indicating copy to clipboard operation
INGInious copied to clipboard

Auto-indent problematic with python

Open Maxmawt opened this issue 6 years ago • 2 comments

There is a problem in the code problem space. When you are doing python exercises and you type on tab key, the next line will be considered with a "\t" like the previous and that causes a compilation failure. screen shot 2018-05-10 at 11 46 36 The next picture explains the problem. The line with "x-=1" is produced with a "\n" from the previous line. screen shot 2018-05-10 at 11 46 24 So, you have to delete all spaces from line beginning and do a manual tab. screen shot 2018-05-10 at 11 47 06

Maxmawt avatar May 10 '18 09:05 Maxmawt

This issue still happens in the most recent release of CodeMirror (see https://codemirror.net/mode/python/index.html).

You should discuss this on the CodeMirror repo.

anthonygego avatar May 10 '18 10:05 anthonygego

Reopening for fix

AlexandreDoneux avatar Feb 22 '24 13:02 AlexandreDoneux