From 4c423a8d97035e9b7f67413f63b0241b027cd1fc Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Fri, 5 Mar 2021 01:37:58 +0100 Subject: Use placeholder consistent with others in the cog --- bot/exts/info/doc/_parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [] -- cgit v1.2.3