From 1dd932993b7357e90415198689cf3b6e2c6c29a2 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 2 May 2020 16:07:53 +0200 Subject: [PATCH] Fixed docstrings indentation --- sid/sid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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': -- 2.39.2