Fixed overflow

This commit is contained in:
Sean Corrigan 2020-12-24 16:47:54 -05:00
parent 4cee4c7109
commit 8c2d66fca1

View File

@ -26,7 +26,7 @@ def fixformatting(message):
fixedmessage = [""] fixedmessage = [""]
counter = 0 counter = 0
for word in message.split(" "): for word in message.split(" "):
if counter + len(word) >= 25: if counter + len(word) >= 18:
counter = 0 counter = 0
fixedmessage.append("\n") fixedmessage.append("\n")
fixedmessage.append("{} ".format(word)) fixedmessage.append("{} ".format(word))