line managament issues - no display error fixed

This commit is contained in:
Sean Corrigan 2020-12-24 15:04:14 -05:00
parent dc3e24135e
commit 0b7dce28db

View File

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