aboutsummaryrefslogtreecommitdiff
path: root/cgi/formatting.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/formatting.py')
-rw-r--r--cgi/formatting.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/formatting.py b/cgi/formatting.py
index ead1d0f..8037257 100644
--- a/cgi/formatting.py
+++ b/cgi/formatting.py
@@ -48,9 +48,9 @@ def format_post(message, ip, parentid, parent_timestamp=0):
# If not using markdown quotes must be created and \n changed for HTML line breaks
if not using_markdown:
message = re.compile(r"^[\s\t]*(\n)+").sub("", message)
- message = re.compile(r"\n(\n)+").sub("<br /><br />", message)
- message = message.replace("\n", "<br />")
+ message = re.compile(r"\n(\n)+").sub("\n\n", message)
message = checkQuotes(message)
+ message = message.replace("\n", "<br />")
return message