diff options
| author | Kreusada <[email protected]> | 2021-04-11 20:19:45 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-11 15:19:45 -0400 |
| commit | af5964358d57f4b2bb431894398b4dced5873e10 (patch) | |
| tree | bd0e1e4ae2e3596f610a9955d5b560b66e321e6d | |
| parent | Use v8 overwrite type when creating a channel (diff) | |
| download | discord.py-af5964358d57f4b2bb431894398b4dced5873e10.tar.xz discord.py-af5964358d57f4b2bb431894398b4dced5873e10.zip | |
[commands] Strip text to remove spaces before ellipsis
| -rw-r--r-- | discord/ext/commands/help.py | 2 |
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): |