Revision 6687
Added by Aaron Marcuse-Kubitza about 12 years ago
dict2redmine | ||
---|---|---|
51 | 51 |
|
52 | 52 |
def redmine_add_links(page_name, text): |
53 | 53 |
# Link citations to entry in sources list |
54 |
text = re.sub(r'(?<=\[)(.*?)(?=\])', sp+'[['+page_name+r'#\g<0>|\g<0>]]'+sp, |
|
55 |
text) # sp prevents [[[, which Redmine would parse incorrectly |
|
54 |
text = re.sub(r'(?<=\[)(.*?)(?=\])', |
|
55 |
sp+redmine_url('\g<0>', page_name+r'#\g<0>')+sp, text) |
|
56 |
# sp prevents [[[, which Redmine would parse incorrectly |
|
56 | 57 |
return text |
57 | 58 |
|
58 | 59 |
class RedmineTableWriter: |
Also available in: Unified diff
dict2redmine: redmine_add_links(): Use redmine_url() to create the internal link