@register.filter(is_safe=True)<EOL>def dedent(text):
return textwrap.dedent(text)<EOL>
Removes indentation of text. Useful in text emails that otherwise can't be
indented.

Example usage::

    {% filter dedent %}
        My text
        {% if something %}
            another text
        {% endif %}
    {% endfilter %}

This example would return this HTML::

    My text

    another text