From 1ee0b00d2a429902ec1125307a473675b86fc35c Mon Sep 17 00:00:00 2001 From: Kwankyu Lee Date: Fri, 2 Dec 2022 21:38:32 +0900 Subject: [PATCH] Fix for item A9 of issue #18 --- migrate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/migrate.py b/migrate.py index 7be0b4aa50..91eb64ae5c 100755 --- a/migrate.py +++ b/migrate.py @@ -227,6 +227,7 @@ def trac2markdown(text, base_path, multilines = True, trac_ticket_url=None) : if trac_ticket_url: # as long as the ticket themselfs have not been migrated they should reference to the original place line = re.sub(r'\#([1-9]\d{0,4})', r'[#\1](%s/\1)' % trac_ticket_url, line) + line = re.sub(r' %s/([0-9]+)' % trac_ticket_url, r' [#\1](%s/\1)' % trac_ticket_url, line) if line.startswith('||'): if not is_table: sep = re.sub(r'\|\|=', r'||:', line) # take care of left align