]> kaliko git repositories - sid.git/commitdiff
Fixed docstrings indentation
authorkaliko <kaliko@azylum.org>
Sat, 2 May 2020 14:07:53 +0000 (16:07 +0200)
committerkaliko <kaliko@azylum.org>
Sat, 2 May 2020 14:07:53 +0000 (16:07 +0200)
sid/sid.py

index 534c3a0cce58b02b1ce308681b406f4da3375e8d..5b85fd15211315113fc83a3907938ba74d623e70 100644 (file)
@@ -193,7 +193,8 @@ class MUCBot(slixmpp.ClientXMPP):
             text = '{}\n\n{}'.format(description, usage)
         else:
             if args[0] in self.commands.keys():
-                text = self.commands[args[0]].__doc__.strip() or 'undocumented'
+                text = self.commands[args[0]].__doc__ or 'undocumented'
+                text = inspect.cleandoc(text)
             else:
                 text = 'That command is not defined.'
         if message['type'] == 'groupchat':