Ticket #10931: utils_text-r10637.patch
File utils_text-r10637.patch, 683 bytes (added by , 16 years ago) |
---|
-
django/utils/text.py
61 61 return u'' 62 62 html4_singlets = ('br', 'col', 'link', 'base', 'img', 'param', 'area', 'hr', 'input') 63 63 # Set up regular expressions 64 re_words = re.compile(r'&.*?;|<.*?>|(\w[\w-]*)', re.U )65 re_tag = re.compile(r'<(/)?([^ ]+?)(?: (/)| .*?)?>' )64 re_words = re.compile(r'&.*?;|<.*?>|(\w[\w-]*)', re.U|re.S) 65 re_tag = re.compile(r'<(/)?([^ ]+?)(?: (/)| .*?)?>', re.S) 66 66 # Count non-HTML words and keep note of open tags 67 67 pos = 0 68 68 ellipsis_pos = 0