index 4c7b2c914b1002be9edd891ed200b9cf90392e5a..6f0584f10d76a69698cb49225f3c108e4f4e3dc6 100644 (file)
elif match.group('email'):
s = match.group('email')
return '<a href="mailto:%s">%s</a>'%(s, s)
- else:
+ elif len(match.group('id')) < 10:
return self._hyper_repl_item(match,
'<a href="%(cls)s%(id)s">%(item)s</a>')
+ else:
+ # just return the matched text
+ return match.group(0)
def _hyper_repl_rst(self, match):
if match.group('url'):
elif match.group('email'):
s = match.group('email')
return '`%s <mailto:%s>`_'%(s, s)
- else:
+ elif len(match.group('id')) < 10:
return self._hyper_repl_item(match,'`%(item)s <%(cls)s%(id)s>`_')
+ else:
+ # just return the matched text
+ return match.group(0)
def hyperlinked(self):
""" Render a "hyperlinked" version of the text """