From af5964358d57f4b2bb431894398b4dced5873e10 Mon Sep 17 00:00:00 2001 From: Kreusada <67752638+Kreusada@users.noreply.github.com> Date: Sun, 11 Apr 2021 20:19:45 +0100 Subject: [PATCH] [commands] Strip text to remove spaces before ellipsis --- discord/ext/commands/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py index 177d3b9b7..a29374511 100644 --- a/discord/ext/commands/help.py +++ b/discord/ext/commands/help.py @@ -931,7 +931,7 @@ class DefaultHelpCommand(HelpCommand): def shorten_text(self, text): """:class:`str`: Shortens text to fit into the :attr:`width`.""" if len(text) > self.width: - return text[:self.width - 3] + '...' + return text[:self.width - 3].rstrip() + '...' return text def get_ending_note(self):