summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-01-15 05:18:17 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-01-15 05:18:17 +0000
commite449e5c805841c35590feee1a661dffa9bbe5b4b (patch)
tree1b5e22d94578025c08fed5c7df5a410519ab19fd /docs
parent0eaee6f5d4976f3b0146d512c43d2f9a19f39021 (diff)
Fixed #1227 -- Fixed problem with new {% spaceless %} tag. It now normalizes spaces to a single space rather than no spaces
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/templates.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/templates.txt b/docs/templates.txt
index 0fbe1f6ae8..3dafb068c3 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -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 %}