INGInious
INGInious copied to clipboard
Auto-indent problematic with python
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.
The next picture explains the problem. The line with "x-=1" is produced with a "\n" from the previous line.
So, you have to delete all spaces from line beginning and do a manual tab.
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.
Reopening for fix