collapse excessive newlines into two

This commit is contained in:
iou1name 2018-10-08 11:52:08 -04:00
parent 377f20439e
commit e1e38cbbe8

View File

@ -31,6 +31,7 @@ def message(socket, data):
# cleaning
message = message[:512]
message = message.strip()
message = re.sub(r'\n\n+', '\n\n', message)
if not message:
return
tags = ["b", "code", "i", "s"]