{% autoescape on %} {% for row in diff %} {% for sign, text in row %} {% if sign == '+' and text %}
{{ text }}{% endif %} {% if sign == '-' and text %}
{{ text }}{% endif %} {% if sign == '=' %}
{{ text }}{% endif %} {% if sign == '.' %} ... {% endif %} {% endfor %}