magic-removal: Merged to [1971]

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-01-15 05:55:48 +00:00
parent 2cfb709ac2
commit 974316939a
5 changed files with 13 additions and 9 deletions

View file

@ -668,7 +668,8 @@ spaceless
**New in Django development version.**
Strips whitespace between HTML tags. This includes tab characters and newlines.
Normalizes whitespace between HTML tags to a single space. This includes tab
characters and newlines.
Example usage::
@ -680,9 +681,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 stripped -- not space between tags and text. In
Only space between *tags* is normalized -- not space between tags and text. In
this example, the space around ``Hello`` won't be stripped::
{% spaceless %}