Project

General

Profile

« Previous | Next » 

Revision 6835

dict2redmine: redmine_add_links(): Put citations in () instead of [] to avoid conflicting with the Redmine syntax for internal links ( ... )

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_url('\g<0>', page_name+r'#\1')), text)
59
        redmine_bold(redmine_url(r'(\1)', page_name+r'#\1')), text)
60 60
    return text
61 61

  
62 62
redmine_table_sep = '|'

Also available in: Unified diff