misc(issues): changed some code formatting
This commit is contained in:
parent
efb292ca10
commit
93f87fdf37
1 changed files with 0 additions and 3 deletions
|
@ -115,17 +115,14 @@ class Issues(commands.Cog):
|
|||
words = value.split()
|
||||
split_value = []
|
||||
current_part = ""
|
||||
|
||||
for word in words:
|
||||
if len(current_part) + len(word) + 1 <= 1024:
|
||||
current_part += word + " "
|
||||
else:
|
||||
split_value.append(current_part.strip())
|
||||
current_part = word + " "
|
||||
|
||||
if current_part:
|
||||
split_value.append(current_part.strip())
|
||||
|
||||
for i, part in enumerate(split_value):
|
||||
embed.add_field(name=title if i == 0 else "\u200b", value=part, inline=False)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue