From 9191fa1f644481d2e9a0495f9585f9bf1e83d87e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 1 Apr 2007 01:09:21 +0000 Subject: 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 --- docs/templates.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') 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:: -

Foo

+

Foo

-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 %} -- cgit v1.3