diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-04-01 01:09:21 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-04-01 01:09:21 +0000 |
| commit | 9191fa1f644481d2e9a0495f9585f9bf1e83d87e (patch) | |
| tree | ee1b08842209eeb8dd83ef37456fda3235f78372 /docs | |
| parent | 1109e722aaf1c9100bcb4ea0c3e23b5fd4c8c8de (diff) | |
Fixed #3532 -- Made spaceless template tag remove all spaces, rather than preserving a single space. Thanks for the suggestion, ampaze@gmx.net.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/templates.txt b/docs/templates.txt index 8ab383c461..d93ee49ac1 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -757,7 +757,7 @@ i.e.:: spaceless ~~~~~~~~~ -Normalizes whitespace between HTML tags to a single space. This includes tab +Removes whitespace between HTML tags. This includes tab characters and newlines. Example usage:: @@ -770,9 +770,9 @@ Example usage:: This example would return this HTML:: - <p> <a href="foo/">Foo</a> </p> + <p><a href="foo/">Foo</a></p> -Only space between *tags* is normalized -- not space between tags and text. In +Only space between *tags* is removed -- not space between tags and text. In this example, the space around ``Hello`` won't be stripped:: {% spaceless %} |
