Changeset 167
- Timestamp:
- 01/29/08 20:24:43 (3 years ago)
- Files:
-
- 1 modified
-
trunk/html/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/html/__init__.py
r166 r167 8 8 from django.utils.encoding import force_unicode 9 9 10 def strip_empty_lines(value) 10 def strip_empty_lines(value): 11 11 """Return the given HTML with empty and all-whitespace lines removed.""" 12 12 return re.sub(r'\n[ \t]*(?=\n)', '', force_unicode(value))
