question_cmd: fixed source code extraction and added a testcase

This commit is contained in:
2023-09-09 18:28:10 +02:00
parent 39b518a8a6
commit 53582a7123
4 changed files with 72 additions and 28 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ class Message():
return '\n'.join(output)
def __str__(self) -> str:
return self.to_str(False, False, False)
return self.to_str(True, True, False)
def to_file(self, file_path: Optional[pathlib.Path]=None) -> None: # noqa: 11
"""