From: Matt Janssen Date: Wed, 26 Jun 2013 19:20:02 +0000 (-0500) Subject: Updated {% spaceless %} example to show how spaces in strings are handled. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2861befc426f8449b638027361eb776a15f4e2cd;p=web%2Fkonrad%2Ftwig.git Updated {% spaceless %} example to show how spaces in strings are handled. Updated output to show space is preserved within `
foo bar
` HTML. --- diff --git a/doc/templates.rst b/doc/templates.rst index c2047d9..542b8ae 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -796,11 +796,11 @@ Use the ``spaceless`` tag to remove whitespace *between HTML tags*: {% spaceless %}
- foo + foo bar
{% endspaceless %} - {# output will be
foo
#} + {# output will be
foo bar
#} 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