Acode icon indicating copy to clipboard operation
Acode copied to clipboard

Format on Save Removes indentation on Python files.

Open BizzyEL opened this issue 2 years ago • 0 comments

Description: Setting the editor to format on save ends up removing indentation on python files.

How to Reproduce Error:

  • Open Acode Editor
  • Click the 3-vertical dots on the top-right corner
  • Click Settings > Editor Settings
  • Locate "Format on save" and click to Check the Box
  • Exit from the settings.
  • Create a new python file with the following code:
for i in range(10):
    print(i)
  • Save the file.

Expected Behaviour: Code should remain unchanged.

Result: Indentation is removed when saved such that the code becomes:

for i in range(10):
print(i)

BizzyEL avatar May 22 '23 17:05 BizzyEL