Revision 6691
Added by Aaron Marcuse-Kubitza about 12 years ago
dict2redmine | ||
---|---|---|
53 | 53 |
|
54 | 54 |
def redmine_add_links(page_name, text): |
55 | 55 |
# Link citations to entry in sources list |
56 |
text = re.sub(r'(?<=\[)(.*?)(?=\])', |
|
57 |
redmine_pad(redmine_bold(redmine_url('\g<0>', page_name+r'#\g<0>'))), |
|
58 |
text) # redmine_pad() avoids [[[, which Redmine would parse incorrectly |
|
56 |
text = re.sub(r'\[(.*?)\]', |
|
57 |
redmine_bold(redmine_url('\g<0>', page_name+r'#\1')), text) |
|
59 | 58 |
return text |
60 | 59 |
|
61 | 60 |
class RedmineTableWriter: |
Also available in: Unified diff
dict2redmine: redmine_add_links(): Include the [] in the link text, to avoid the need for redmine_pad(), etc.