diff -r d001bc703c29 -r aedc309827c7 eric6/QScintilla/Lexers/LexerPython.py --- a/eric6/QScintilla/Lexers/LexerPython.py Wed Sep 25 18:25:43 2019 +0200 +++ b/eric6/QScintilla/Lexers/LexerPython.py Wed Sep 25 18:37:35 2019 +0200 @@ -183,8 +183,11 @@ if m: last -= indent_width - if lead_spaces % indent_width != 0 or lead_spaces == 0 \ - or self.lastIndented != line: + if ( + lead_spaces % indent_width != 0 or + lead_spaces == 0 or + self.lastIndented != line + ): indentDifference = last - lead_spaces else: indentDifference = -indent_width