Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (15 sloc) 335 Bytes
.. index:: tag; spaceless

spaceless

Removes whitespace between HTML tags.

Example:

{% spaceless %}
<div>
    <p>Test test test</p>
</div>
{% endspaceless %}

After rendering:

<div><p>Test test test</p></div>

Note

It will not remove other whitespace.

.. versionadded:: 0.8