diff roundup/cgi/templating.py @ 2673:63f8b13ba85f

fix sre_constants.error: nothing to repeat in StringHTMLProperty hyperlink regexp
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Thu, 16 Sep 2004 07:07:01 +0000
parents f48a81d49a86
children 10a49678ebf2
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Tue Sep 14 22:09:48 2004 +0000
+++ b/roundup/cgi/templating.py	Thu Sep 16 07:07:01 2004 +0000
@@ -776,7 +776,7 @@
                     id = self._klass.get(self._nodeid, prop_n, None)
                     current[prop_n] = '<a href="%s%s">%s</a>'%(
                         classname, id, current[prop_n])
- 
+
         # get the journal, sort and reverse
         history = self._klass.history(self._nodeid)
         history.sort()
@@ -1088,7 +1088,7 @@
 class StringHTMLProperty(HTMLProperty):
     hyper_re = re.compile(r'((?P<url>\w{3,6}://\S+)|'
                           r'(?P<email>[-+=%/\w\.]+@[\w\.\-]+)|'
-                          r'(?P<item>(?P<class>[A-Za-z_]+)(\s*)?(?P<id>\d+)))')
+                          r'(?P<item>(?P<class>[A-Za-z_]+)(\s*)(?P<id>\d+)))')
     def _hyper_repl(self, match):
         if match.group('url'):
             s = match.group('url')

Roundup Issue Tracker: http://roundup-tracker.org/