misc(issues): changed some code formatting

This commit is contained in:
Seaswimmer 2023-08-19 16:59:06 -04:00
parent efb292ca10
commit 93f87fdf37
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -115,17 +115,14 @@ class Issues(commands.Cog):
words = value.split() words = value.split()
split_value = [] split_value = []
current_part = "" current_part = ""
for word in words: for word in words:
if len(current_part) + len(word) + 1 <= 1024: if len(current_part) + len(word) + 1 <= 1024:
current_part += word + " " current_part += word + " "
else: else:
split_value.append(current_part.strip()) split_value.append(current_part.strip())
current_part = word + " " current_part = word + " "
if current_part: if current_part:
split_value.append(current_part.strip()) split_value.append(current_part.strip())
for i, part in enumerate(split_value): for i, part in enumerate(split_value):
embed.add_field(name=title if i == 0 else "\u200b", value=part, inline=False) embed.add_field(name=title if i == 0 else "\u200b", value=part, inline=False)
else: else: