aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-03-05 01:37:58 +0100
committerGravatar Numerlor <[email protected]>2021-03-05 02:46:41 +0100
commit4c423a8d97035e9b7f67413f63b0241b027cd1fc (patch)
tree5a0c18e74b32c8bcc5835d7a7282255b73c411bc
parentAdd comments to the parsing module (diff)
Use placeholder consistent with others in the cog
-rw-r--r--bot/exts/info/doc/_parsing.py2
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 = []