Revision 6690
Added by Aaron Marcuse-Kubitza about 12 years ago
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 |
redmine_pad(redmine_url('\g<0>', page_name+r'#\g<0>')), text)
|
|
58 |
# redmine_pad() prevents [[[, which Redmine would parse incorrectly
|
|
57 |
redmine_pad(redmine_bold(redmine_url('\g<0>', page_name+r'#\g<0>'))),
|
|
58 |
text) # redmine_pad() avoids [[[, which Redmine would parse incorrectly
|
|
59 | 59 |
return text |
60 | 60 |
|
61 | 61 |
class RedmineTableWriter: |
Also available in: Unified diff
dict2redmine: redmine_add_links(): Make the link bold so it stands out as a link