diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-09 05:08:21 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-09 05:08:21 +0100 |
commit | 3a61639a08b08c312130abe971652ad210e2b78d (patch) | |
tree | c5968d32928cd5049045d5eadde128cf98064ac6 /utils.py | |
parent | f359b645e6c58c0756cb29a6c7950ef998f88bed (diff) | |
download | troggle-3a61639a08b08c312130abe971652ad210e2b78d.tar.gz troggle-3a61639a08b08c312130abe971652ad210e2b78d.tar.bz2 troggle-3a61639a08b08c312130abe971652ad210e2b78d.zip |
[svn] Make QM wikilinks work in new format, and fix cave description parser to output working wikilinks.
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -103,8 +103,8 @@ re_subs = [(re.compile(r"\<b[^>]*\>(.*?)\</b\>", re.DOTALL), r"'''\1'''"), (re.compile(r"\<h6[^>]*\>(.*?)\</h6\>", re.DOTALL), r"======\1======"),
(re.compile(r"\<a\s+id=['\"]([^'\"]*)['\"]\s*\>(.*?)\</a\>", re.DOTALL), r"[subcave:\1|\2]"),
#interpage link needed
- (re.compile(r"\<a\s+href=['\"]#([^'\"]*)['\"]\s*\>(.*?)\</a\>", re.DOTALL), r"[cavedescription:\1|\2]"),
- (re.compile(r"\[\<a\s+href=['\"][^'\"]*['\"]\s+id=['\"][^'\"]*['\"]\s*\>([^\s]*).*?\</a\>\]", re.DOTALL), r"![qm:\1]"),
+ (re.compile(r"\<a\s+href=['\"]#([^'\"]*)['\"]\s*\>(.*?)\</a\>", re.DOTALL), r"[[cavedescription:\1|\2]]"),
+ (re.compile(r"\[\<a\s+href=['\"][^'\"]*['\"]\s+id=['\"][^'\"]*['\"]\s*\>([^\s]*).*?\</a\>\]", re.DOTALL), r"[[qm:\1]]"),
]
|