diff --git a/aiserver.py b/aiserver.py index 3d33c714..e738e2ad 100644 --- a/aiserver.py +++ b/aiserver.py @@ -3158,7 +3158,7 @@ def tpumtjgenerate(txt, minimum, maximum, found_entries=None): # Replaces returns and newlines with HTML breaks #==================================================================# def formatforhtml(txt): - return txt.replace("\\r\\n", "
").replace("\\r", "
").replace("\\n", "
").replace("\r\n", "
").replace('\n', '
').replace('\r', '
').replace('', '
') + return txt.replace("\\r\\n", "
").replace("\\r", "
").replace("\\n", "
").replace("\r\n", "
").replace('\n', '
').replace('\r', '
').replace('</s>', '
') #==================================================================# # Strips submitted text from the text returned by the AI