From fd65e84b628a759fc0836b47564bfe0c8ac3c72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 9 Feb 2013 09:12:01 +0100 Subject: [PATCH] Replace line returns by
for comments --- ChangeLog | 2 +- views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8b64b6..1356faf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,4 +10,4 @@ v0.2 (09/02/2013) ** Bugs ** Escape double quotes in metas tag - + Replace line returns by
for comments diff --git a/views.py b/views.py index 02ef02e..c10516e 100644 --- a/views.py +++ b/views.py @@ -688,6 +688,7 @@ def add_comment(request, post_id, parent_id): the_comment = request.POST['the_comment'] the_comment = the_comment.replace('<', '<') the_comment = the_comment.replace('>', '>') + the_comment = the_comment.replace('\n', '
') if 'mel' in request.POST: mel = request.POST['mel'].strip()