diff options
author | 2021-03-05 01:37:58 +0100 | |
---|---|---|
committer | 2021-03-05 02:46:41 +0100 | |
commit | 4c423a8d97035e9b7f67413f63b0241b027cd1fc (patch) | |
tree | 5a0c18e74b32c8bcc5835d7a7282255b73c411bc | |
parent | Add comments to the parsing module (diff) |
Use placeholder consistent with others in the cog
-rw-r--r-- | bot/exts/info/doc/_parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_parsing.py b/bot/exts/info/doc/_parsing.py index e7b8b695b..fc38ff82a 100644 --- a/bot/exts/info/doc/_parsing.py +++ b/bot/exts/info/doc/_parsing.py @@ -113,7 +113,7 @@ def _truncate_signatures(signatures: Collection[str]) -> Union[List[str], Collec if len(signature) > max_signature_length: if (parameters_match := _PARAMETERS_RE.search(signature)) is None: # The signature has no parameters or the regex failed; perform a simple truncation of the text. - formatted_signatures.append(textwrap.shorten(signature, max_signature_length)) + formatted_signatures.append(textwrap.shorten(signature, max_signature_length, placeholder="...")) continue truncated_signature = [] |