##// END OF EJS Templates
yet another fix for commit linkifications
marcink -
r2966:566f0166 beta
parent child Browse files
Show More
@@ -940,7 +940,6 b' def fancy_file_stats(stats):'
940
940
941
941
942 def urlify_text(text_):
942 def urlify_text(text_):
943 import re
944
943
945 url_pat = re.compile(r'''(http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]'''
944 url_pat = re.compile(r'''(http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]'''
946 '''|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)''')
945 '''|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)''')
@@ -959,7 +958,7 b' def urlify_changesets(text_, repository)'
959 :param text_:
958 :param text_:
960 :param repository:
959 :param repository:
961 """
960 """
962 import re
961
963 URL_PAT = re.compile(r'([0-9a-fA-F]{12,})')
962 URL_PAT = re.compile(r'([0-9a-fA-F]{12,})')
964
963
965 def url_func(match_obj):
964 def url_func(match_obj):
@@ -994,7 +993,6 b' def urlify_commit(text_, repository=None'
994 :param repository:
993 :param repository:
995 :param link_: changeset link
994 :param link_: changeset link
996 """
995 """
997 import re
998 import traceback
996 import traceback
999
997
1000 def escaper(string):
998 def escaper(string):
@@ -1071,13 +1069,11 b' def urlify_commit(text_, repository=None'
1071 if link_:
1069 if link_:
1072 # wrap not links into final link => link_
1070 # wrap not links into final link => link_
1073 newtext = linkify_others(newtext, link_)
1071 newtext = linkify_others(newtext, link_)
1074
1075 return literal(newtext)
1076 except:
1072 except:
1077 log.error(traceback.format_exc())
1073 log.error(traceback.format_exc())
1078 pass
1074 pass
1079
1075
1080 return newtext
1076 return literal(newtext)
1081
1077
1082
1078
1083 def rst(source):
1079 def rst(source):
General Comments 0
You need to be logged in to leave comments. Login now