{% spaceless %}
    {% with content.get_absolute_url as url %}
        {% if url %}
            <a href="{{ content.get_absolute_url }}">{{ content }}</a>
        {% else %}
            {{ content }}
    {% endwith %}
{% endspaceless %}
{% spaceless %}
    {% with content.get_absolute_url as url %}
        {% if url %}
            <a href="{{ content.get_absolute_url }}">{{ content }}</a>
        {% else %}
            {{ content }}
        {% endif %}
    {% endwith %}
{% endspaceless %}
Add an inexplicably-missing {% endif %}
Add an inexplicably-missing {% endif %}
