diff --git a/spyder/widgets/sourcecode/codeeditor.py b/spyder/widgets/sourcecode/codeeditor.py index 31786531ed8..0de689bd716 100644 --- a/spyder/widgets/sourcecode/codeeditor.py +++ b/spyder/widgets/sourcecode/codeeditor.py @@ -671,7 +671,7 @@ def setup_editor(self, linenumbers=True, language=None, markers=False, calltips=None, go_to_definition=False, close_parentheses=True, close_quotes=False, add_colons=True, auto_unindent=True, strict_indent=True, - indent_chars=" "*4, tab_stop_width_spaces=4, + indent_chars=" " * 4, tab_stop_width_spaces=4, cloned_from=None, filename=None, occurrence_timeout=1500): # Code completion and calltips @@ -684,6 +684,7 @@ def setup_editor(self, linenumbers=True, language=None, markers=False, self.set_close_quotes_enabled(close_quotes) self.set_add_colons_enabled(add_colons) self.set_auto_unindent_enabled(auto_unindent) + self.set_strict_indent_enabled(strict_indent) self.set_indent_chars(indent_chars) self.set_tab_stop_width_spaces(tab_stop_width_spaces)