Project

General

Profile

« Previous | Next » 

Revision 6689

dict2redmine: redmine_add_links(): Use new redmine_pad()

View differences:

dict2redmine
54 54
def redmine_add_links(page_name, text):
55 55
    # Link citations to entry in sources list
56 56
    text = re.sub(r'(?<=\[)(.*?)(?=\])',
57
        sp+redmine_url('\g<0>', page_name+r'#\g<0>')+sp, text)
58
        # sp prevents [[[, which Redmine would parse incorrectly
57
        redmine_pad(redmine_url('\g<0>', page_name+r'#\g<0>')), text)
58
        # redmine_pad() prevents [[[, which Redmine would parse incorrectly
59 59
    return text
60 60

  
61 61
class RedmineTableWriter:

Also available in: Unified diff