Edgewall Software

Ticket #2655: multiline-link-regexp-fix.diff

File multiline-link-regexp-fix.diff, 0.5 KB (added by Tim Hatch <trac@…>, 3 years ago)

Diff against trunk @ r2824

  • trac/mimeview/api.py

     
    331331def _html_splitlines(lines): 
    332332    """Tracks open and close tags in lines of HTML text and yields lines that 
    333333    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.*?)[^/]?>') 
    335335    close_tag_re = re.compile(r'</(\w+)>') 
    336336    open_tags = [] 
    337337    for line in lines: