Mercurial > kallithea
comparison rhodecode/lib/helpers.py @ 2956:a2ecf8a530b9 beta
don't check for url issue links, since we always want to linkify changeset into a repo link, fixes issue
with issue_pat beeing disabled breaks the urlification
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 23 Oct 2012 17:09:28 +0200 |
parents | 9282b4f38277 |
children | c0a6a2e6bb2e |
comparison
equal
deleted
inserted
replaced
2955:9c85d884315b | 2956:a2ecf8a530b9 |
---|---|
1068 } | 1068 } |
1069 newtext = URL_PAT.sub(url_func, newtext) | 1069 newtext = URL_PAT.sub(url_func, newtext) |
1070 log.debug('processed prefix:`%s` => %s' % (pattern_index, newtext)) | 1070 log.debug('processed prefix:`%s` => %s' % (pattern_index, newtext)) |
1071 | 1071 |
1072 # if we actually did something above | 1072 # if we actually did something above |
1073 if valid_indices: | 1073 if link_: |
1074 if link_: | 1074 # wrap not links into final link => link_ |
1075 # wrap not links into final link => link_ | 1075 newtext = linkify_others(newtext, link_) |
1076 newtext = linkify_others(newtext, link_) | |
1077 | 1076 |
1078 return literal(newtext) | 1077 return literal(newtext) |
1079 except: | 1078 except: |
1080 log.error(traceback.format_exc()) | 1079 log.error(traceback.format_exc()) |
1081 pass | 1080 pass |