aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2019-11-11 01:12:21 +0100
committerGravatar Numerlor <[email protected]>2019-11-11 01:12:21 +0100
commit4a7de0bd155a4717f6cbc593a60dbec130e7ca40 (patch)
tree4bd8638d8c27b612acb016fd0dfca63b50d9d07d
parentclear renamed symbols on inventory refresh (diff)
Do not cut off text arbitrarily but at last sentence to make sure no unfinished markdown is left in
Diffstat (limited to '')
-rw-r--r--bot/cogs/doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py
index 90f496ceb..bf6cee101 100644
--- a/bot/cogs/doc.py
+++ b/bot/cogs/doc.py
@@ -307,7 +307,7 @@ class Doc(commands.Cog):
shortened = description[:1000]
last_paragraph_end = shortened.rfind('\n\n', 100)
if last_paragraph_end == -1:
- last_paragraph_end = 1000
+ last_paragraph_end = shortened.rfind('. ')
description = description[:last_paragraph_end]
# If there is an incomplete code block, cut it out