Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug in spaceless template-tag documentation. Thanks, Esaj

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6f3f25e733b2ba9670ed9035934acc65a971231b 1 parent f1f2005
@adrianholovaty adrianholovaty authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 django/core/template/defaulttags.py
  2. +2 −2 docs/templates.txt
View
4 django/core/template/defaulttags.py
@@ -745,7 +745,7 @@ def spaceless(parser, token):
<p>
<a href="foo/">Foo</a>
</p>
- {% spaceless %}
+ {% endspaceless %}
This example would return this HTML::
@@ -758,7 +758,7 @@ def spaceless(parser, token):
<strong>
Hello
</strong>
- {% spaceless %}
+ {% endspaceless %}
"""
nodelist = parser.parse(('endspaceless',))
parser.delete_first_token()
View
4 docs/templates.txt
@@ -677,7 +677,7 @@ Example usage::
<p>
<a href="foo/">Foo</a>
</p>
- {% spaceless %}
+ {% endspaceless %}
This example would return this HTML::
@@ -690,7 +690,7 @@ this example, the space around ``Hello`` won't be stripped::
<strong>
Hello
</strong>
- {% spaceless %}
+ {% endspaceless %}
ssi
~~~
Please sign in to comment.
Something went wrong with that request. Please try again.