From: kaliko Date: Sat, 2 May 2020 14:07:53 +0000 (+0200) Subject: Fixed docstrings indentation X-Git-Tag: 0.1.0~25 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=1dd932993b7357e90415198689cf3b6e2c6c29a2;p=sid.git Fixed docstrings indentation --- diff --git a/sid/sid.py b/sid/sid.py index 534c3a0..5b85fd1 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -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':