diff -r 325c6de4b1f5 -r e5065dde905d src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py --- a/src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py Mon Oct 31 14:09:07 2022 +0100 +++ b/src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py Mon Oct 31 15:29:18 2022 +0100 @@ -216,9 +216,7 @@ docstringList.append(self.__quote3) for index, line in enumerate(docstringList): docstringList[index] = ( - indentation + line - if bool(line.strip()) - else "" + indentation + line if bool(line.strip()) else "" ) return sep.join(docstringList) + sep, (insertLine, 0), newCursorLine @@ -324,9 +322,7 @@ docstringList.append(self.__quote3) for index, line in enumerate(docstringList): docstringList[index] = ( - indentation + line - if bool(line.strip()) - else "" + indentation + line if bool(line.strip()) else "" ) docstring = sep.join(docstringList) + indentation return docstring, cursorPosition, newCursorLine