Browse Source
[commands] Strip text to remove spaces before ellipsis
pull/6705/head
Kreusada
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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): |
|
|
|