diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-12 06:30:24 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-12 06:30:24 +0100 |
commit | b9a1b83273eceb519fa76b6624c69c2fc127fb64 (patch) | |
tree | 82955e6ecb11220f0da6a9be892a7945d4353852 /utils.py | |
parent | 792751b96037dfb6cc6ee46a599774cebddc9abf (diff) | |
download | troggle-b9a1b83273eceb519fa76b6624c69c2fc127fb64.tar.gz troggle-b9a1b83273eceb519fa76b6624c69c2fc127fb64.tar.bz2 troggle-b9a1b83273eceb519fa76b6624c69c2fc127fb64.zip |
[svn] * wikilink to html for subcaves and cave descriptions
* fix header regex
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -99,7 +99,7 @@ re_subs = [(re.compile(r"\<b[^>]*\>(.*?)\</b\>", re.DOTALL), r"'''\1'''"), (re.compile(r"\<h4[^>]*\>(.*?)\</h4\>", re.DOTALL), r"====\1===="),
(re.compile(r"\<h5[^>]*\>(.*?)\</h5\>", 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]"),
+ (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]]"),
|