merged branch mattjanssen/spaceless-doc (PR #1122)

This PR was merged into the master branch.

Discussion
----------

Updated {% spaceless %} example to show how spaces in strings are handled

Updated output to show space is preserved within `<div><strong>foo bar</strong></div>` HTML.

Commits
-------

2861bef Updated {% spaceless %} example to show how spaces in strings are handled.
This commit is contained in:
Fabien Potencier
2013-06-27 08:18:27 +02:00
+2 -2
View File
@@ -796,11 +796,11 @@ Use the ``spaceless`` tag to remove whitespace *between HTML tags*:
{% spaceless %}
<div>
<strong>foo</strong>
<strong>foo bar</strong>
</div>
{% endspaceless %}
{# output will be <div><strong>foo</strong></div> #}
{# output will be <div><strong>foo bar</strong></div> #}
In addition to the spaceless tag you can also control whitespace on a per tag
level. By using the whitespace control modifier on your tags, you can trim