diff --git a/django/utils/html.py b/django/utils/html.py index 9b3fad8b03..c985538041 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -46,9 +46,9 @@ def linebreaks(value, autoescape=False): value = re.sub(r'\r\n|\r|\n', '\n', force_unicode(value)) # normalize newlines paras = re.split('\n{2,}', value) if autoescape: - paras = [u'
%s
' % escape(p.strip()).replace('\n', '%s
' % escape(p).replace('\n', '%s
' % p.strip().replace('\n', '%s
' % p.replace('\n', '