Sunday, May 23, 2010

Cancel turning email address into links in zim

find file /usr/lib/pymodules/python2.6/zim/parsing.py

delete @ pattern

url_re = Re(r'''(
    \b \w[\w\+\-\.]+:// %(c)s* \[ %(c)s+ \] (?: %(c)s+ [\w/] )?  |
    \b \w[\w\+\-\.]+:// %(c)s+ [\w/]                             |
    \b mailto: %(c)s+ \@ %(c)s* \[ %(c)s+ \] (?: %(c)s+ [\w/] )? |
    \b mailto: %(c)s+ \@ %(c)s+ [\w/]
)''' % _classes, re.X)

#url_re = Re(r'''(
#    \b \w[\w\+\-\.]+:// %(c)s* \[ %(c)s+ \] (?: %(c)s+ [\w/] )?  |
#    \b \w[\w\+\-\.]+:// %(c)s+ [\w/]                             |
#    \b mailto: %(c)s+ \@ %(c)s* \[ %(c)s+ \] (?: %(c)s+ [\w/] )? |
#    \b mailto: %(c)s+ \@ %(c)s+ [\w/]                            |
#    \b %(c)s+ \@ %(c)s+ \. \w+ \b
#)''' % _classes, re.X)

No comments:

Post a Comment