Project

General

Profile

« Previous | Next » 

Revision 6685

dict2redmine: redmine_add_links(): Fixed bug where need to explicitly specify the source name as the link text

View differences:

dict2redmine
50 50

  
51 51
def redmine_add_links(page_name, text):
52 52
    # Link citations to entry in sources list
53
    text = re.sub(r'(?<=\[)(.*?)(?=\])', sp+'[['+page_name+r'#\g<0>]]'+sp, text)
54
        # sp prevents [[[, which Redmine would parse incorrectly
53
    text = re.sub(r'(?<=\[)(.*?)(?=\])', sp+'[['+page_name+r'#\g<0>|\g<0>]]'+sp,
54
        text) # sp prevents [[[, which Redmine would parse incorrectly
55 55
    return text
56 56

  
57 57
class RedmineTableWriter:

Also available in: Unified diff