Project

General

Profile

« Previous | Next » 

Revision 6838

dict2redmine: redmine_add_links(): Hyperlink just the source name, not also the () around it

View differences:

dict2redmine
56 56
def redmine_add_links(page_name, text):
57 57
    # Link citations to entry in sources list
58 58
    text = re.sub(r'(?<!\[)\[([^\[\]]*)\](?!\])',
59
        redmine_bold(redmine_link(r'(\1)', page_name+r'#\1')), text)
59
        '('+redmine_link(r'\1', page_name+r'#\1')+')', text)
60 60
    return text
61 61

  
62 62
redmine_table_sep = '|'

Also available in: Unified diff