diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-01-15 05:18:17 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-01-15 05:18:17 +0000 |
| commit | e449e5c805841c35590feee1a661dffa9bbe5b4b (patch) | |
| tree | 1b5e22d94578025c08fed5c7df5a410519ab19fd /django/utils/html.py | |
| parent | 0eaee6f5d4976f3b0146d512c43d2f9a19f39021 (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 'django/utils/html.py')
| -rw-r--r-- | django/utils/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index d89067106e..9e239cad1f 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -38,8 +38,8 @@ def strip_tags(value): return re.sub(r'<[^>]*?>', '', value) def strip_spaces_between_tags(value): - "Returns the given HTML with spaces between tags stripped" - return re.sub(r'>\s+<', '><', value) + "Returns the given HTML with spaces between tags normalized to a single space" + return re.sub(r'>\s+<', '> <', value) def strip_entities(value): "Returns the given HTML with all entities (&something;) stripped" |
