Ticket #2655: multiline-link-regexp-fix.diff
| File multiline-link-regexp-fix.diff, 0.5 KB (added by Tim Hatch <trac@…>, 3 years ago) |
|---|
-
trac/mimeview/api.py
331 331 def _html_splitlines(lines): 332 332 """Tracks open and close tags in lines of HTML text and yields lines that 333 333 have no tags spanning more than one line.""" 334 open_tag_re = re.compile(r'<(\w+)(\s.* )?[^/]?>')334 open_tag_re = re.compile(r'<(\w+)(\s.*?)[^/]?>') 335 335 close_tag_re = re.compile(r'</(\w+)>') 336 336 open_tags = [] 337 337 for line in lines:
