Commit b6c7730d by glic3rinu

Fixed comma detection in break_long_headers templatetag

parent 92b5db59
...@@ -268,6 +268,6 @@ def break_long_headers(header): ...@@ -268,6 +268,6 @@ def break_long_headers(header):
Breaks headers longer than 160 characters (~page length) Breaks headers longer than 160 characters (~page length)
when possible (are comma separated) when possible (are comma separated)
""" """
if len(header) > 160: if len(header) > 160 and ',' in header:
header = mark_safe('<br> ' + ', <br>'.join(header.split(','))) header = mark_safe('<br> ' + ', <br>'.join(header.split(',')))
return header return header
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment