summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-07-09 05:08:21 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-07-09 05:08:21 +0100
commit3a61639a08b08c312130abe971652ad210e2b78d (patch)
treec5968d32928cd5049045d5eadde128cf98064ac6 /utils.py
parentf359b645e6c58c0756cb29a6c7950ef998f88bed (diff)
downloadtroggle-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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index 1db7e0b..2c181c7 100644
--- a/utils.py
+++ b/utils.py
@@ -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]]"),
]