]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
shuffle commit symbol around
authorJon Dowland <jon@alcopop.org>
Tue, 17 Nov 2009 15:56:42 +0000 (15:56 +0000)
committerJon Dowland <jon@alcopop.org>
Tue, 17 Nov 2009 15:56:42 +0000 (15:56 +0000)
doc/tips/convert_mediawiki_to_ikiwiki.mdwn

index 3b8e5043c8c14ca6a2aafa21291d1f3017c860e5..9719d9a7e86a5430b820be7ee035c8238238ea68 100644 (file)
@@ -118,7 +118,7 @@ into an ikiwiki tag name using a script such as
     pattern =  r'\[\[Category:([^\]]+)\]\]'
     
     def manglecat(mo):
-            return '[\[!tag %s]]' % mo.group(1).strip().replace(' ','_')
+            return '\[[!tag %s]]' % mo.group(1).strip().replace(' ','_')
             
     for line in sys.stdin.readlines():
             res = re.match(pattern, line)