diff options
| author | 2020-01-01 00:43:33 +0100 | |
|---|---|---|
| committer | 2020-01-01 00:43:33 +0100 | |
| commit | 1da2c04e43551cf36646c85880647aa33c40cb24 (patch) | |
| tree | c445a0c0bf1ad1ecdeae2bd9537ce3e306c55c1d | |
| parent | Rename last_paragraph_end variable to a more fitting name (diff) | |
Move comment into if body
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/doc.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py index 16a690f39..cb6f4f972 100644 --- a/bot/cogs/doc.py +++ b/bot/cogs/doc.py @@ -307,9 +307,9 @@ class Doc(commands.Cog):          if len(description) > 1000:              shortened = description[:1000]              description_cutoff = shortened.rfind('\n\n', 100) -            # Search the shortened version for cutoff points in decreasing desirability, -            # cutoff at 1000 if none are found.              if description_cutoff == -1: +                # Search the shortened version for cutoff points in decreasing desirability, +                # cutoff at 1000 if none are found.                  for string in (". ", ", ", ",", " "):                      description_cutoff = shortened.rfind(string)                      if description_cutoff != -1: | 
