mirror of
https://github.com/django/django.git
synced 2025-10-03 23:34:47 +00:00
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:
parent
2cfb709ac2
commit
974316939a
5 changed files with 13 additions and 9 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue