aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKreusada <[email protected]>2021-04-11 20:19:45 +0100
committerGitHub <[email protected]>2021-04-11 15:19:45 -0400
commitaf5964358d57f4b2bb431894398b4dced5873e10 (patch)
treebd0e1e4ae2e3596f610a9955d5b560b66e321e6d
parentUse v8 overwrite type when creating a channel (diff)
downloaddiscord.py-af5964358d57f4b2bb431894398b4dced5873e10.tar.xz
discord.py-af5964358d57f4b2bb431894398b4dced5873e10.zip
[commands] Strip text to remove spaces before ellipsis
-rw-r--r--discord/ext/commands/help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py
index 177d3b9b..a2937451 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):