##// END OF EJS Templates
fixes issue with whitespace for referenced tasks in commit messages
marcink -
r1912:32e1e074 beta
parent child Browse files
Show More
@@ -760,9 +760,13 b' def urlify_commit(text_, repository=None'
760 760 ISSUE_PREFIX = conf.get('issue_prefix')
761 761
762 762 def url_func(match_obj):
763 pref = ''
764 if match_obj.group().startswith(' '):
765 pref = ' '
766
763 767 issue_id = match_obj.groups()[0]
764 768 tmpl = (
765 ' <a class="%(cls)s" href="%(url)s">'
769 '%(pref)s<a class="%(cls)s" href="%(url)s">'
766 770 '%(issue-prefix)s%(id-repr)s'
767 771 '</a>'
768 772 )
@@ -775,6 +779,7 b' def urlify_commit(text_, repository=None'
775 779
776 780 return tmpl % (
777 781 {
782 'pref': pref,
778 783 'cls': 'issue-tracker-link',
779 784 'url': url,
780 785 'id-repr': issue_id,
General Comments 0
You need to be logged in to leave comments. Login now