+ {% for object in object_list %} +
+
+

{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|smartypants|safe}}{%else%}{{object.title|smartypants|widont|safe}}{%endif%}

+ +
+
+ {{object.title|safe|smartypants|widont}} +
+
+ {%endfor%} +