Sat, 16 Jul 2022 18:09:30 +0200
Fixed an issue in the docstring generator searching for the start of a function/method definition.
src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py Thu Jul 14 16:09:37 2022 +0200 +++ b/src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py Sat Jul 16 18:09:30 2022 +0200 @@ -43,7 +43,7 @@ """ if isinstance(text, str): text = text.lstrip() - if text.startswith(("def", "async def")): + if text.startswith(("def ", "async def ")): return True return False