Changes between Version 2 and Version 3 of LinkifyFilter


Ignore:
Timestamp:
Apr 12, 2009, 12:37:57 PM (16 years ago)
Author:
Collin Anderson
Comment:

Bug fix

Legend:

Unmodified
Added
Removed
Modified
  • LinkifyFilter

    v2 v3  
    1818    def _replace(match):
    1919        href = match.group(0)
    20         cls = ' class="%s"' % arg if arg else ''
     20        cls = arg and (' class="%s"' % arg) or ''
    2121        return '<a href="%s"%s>%s</a>' % (href, cls, _spacify(href))
    2222    return regex.sub(_replace, value)
Back to Top