diff --git a/django/core/template/defaulttags.py b/django/core/template/defaulttags.py index f9197dec92..8d3865660a 100644 --- a/django/core/template/defaulttags.py +++ b/django/core/template/defaulttags.py @@ -745,7 +745,7 @@ def spaceless(parser, token):

Foo

- {% spaceless %} + {% endspaceless %} This example would return this HTML:: @@ -758,7 +758,7 @@ def spaceless(parser, token): Hello - {% spaceless %} + {% endspaceless %} """ nodelist = parser.parse(('endspaceless',)) parser.delete_first_token() diff --git a/docs/templates.txt b/docs/templates.txt index 3dafb068c3..78e94c5b54 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -677,7 +677,7 @@ Example usage::

Foo

- {% spaceless %} + {% endspaceless %} This example would return this HTML:: @@ -690,7 +690,7 @@ this example, the space around ``Hello`` won't be stripped:: Hello - {% spaceless %} + {% endspaceless %} ssi ~~~