summaryrefslogtreecommitdiff
path: root/patchwork/templatetags
diff options
context:
space:
mode:
Diffstat (limited to 'patchwork/templatetags')
-rw-r--r--patchwork/templatetags/syntax.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/templatetags/syntax.py b/patchwork/templatetags/syntax.py
index 1f7e718..2a4164d 100644
--- a/patchwork/templatetags/syntax.py
+++ b/patchwork/templatetags/syntax.py
@@ -59,7 +59,7 @@ _span = '<span class="%s">%s</span>'
@register.filter
def patchsyntax(patch):
- content = escape(patch.content)
+ content = escape(patch.content).replace('\r\n', '\n')
for (r, cls) in _patch_span_res:
content = r.sub(lambda x: _span % (cls, x.group(0)), content)