From 2861befc426f8449b638027361eb776a15f4e2cd Mon Sep 17 00:00:00 2001 From: Matt Janssen Date: Wed, 26 Jun 2013 14:20:02 -0500 Subject: [PATCH] Updated {% spaceless %} example to show how spaces in strings are handled. Updated output to show space is preserved within `
foo bar
` HTML. --- doc/templates.rst | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.2.5