summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2007-04-01 01:09:21 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2007-04-01 01:09:21 +0000
commit9191fa1f644481d2e9a0495f9585f9bf1e83d87e (patch)
treeee1b08842209eeb8dd83ef37456fda3235f78372 /django/utils/html.py
parent1109e722aaf1c9100bcb4ea0c3e23b5fd4c8c8de (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 'django/utils/html.py')
-rw-r--r--django/utils/html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index a0d1e82dcf..baa2fb06fc 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -39,8 +39,8 @@ def strip_tags(value):
return re.sub(r'<[^>]*?>', '', value)
def strip_spaces_between_tags(value):
- "Returns the given HTML with spaces between tags normalized to a single space"
- return re.sub(r'>\s+<', '> <', value)
+ "Returns the given HTML with spaces between tags removed"
+ return re.sub(r'>\s+<', '><', value)
def strip_entities(value):
"Returns the given HTML with all entities (&something;) stripped"