aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-03-05 01:26:09 +0100
committerGravatar Numerlor <[email protected]>2021-03-05 02:46:41 +0100
commit398bbdd2080934ef643d5fc98db6358f28fec051 (patch)
treec3311404fd78f05315468526a04d5575d620fbb5
parentUse clearer branching (diff)
Remove placeholder in shorten call
-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 7549efeac..b1b09ccc7 100644
--- a/bot/exts/info/doc/_parsing.py
+++ b/bot/exts/info/doc/_parsing.py
@@ -187,7 +187,7 @@ def _get_truncated_description(
possible_truncation_indices = [cut for cut in markdown_element_ends if cut < truncate_index]
if not possible_truncation_indices:
# In case there is no Markdown element ending before the truncation index, use shorten as a fallback.
- truncated_result = textwrap.shorten(result, truncate_index)
+ truncated_result = textwrap.shorten(result, truncate_index, placeholder="")
else:
# Truncate at the last Markdown element that comes before the truncation index.
markdown_truncate_index = possible_truncation_indices[-1]