diff options
author | Jon Dowland <jon@alcopop.org> | 2009-11-17 15:55:01 +0000 |
---|---|---|
committer | Jon Dowland <jon@alcopop.org> | 2009-11-17 15:55:01 +0000 |
commit | 182043667058d302d33aefa12dcb8678799d7fc7 (patch) | |
tree | 4a3aa20d8bc6b7a0197ba718464dc0be3a986d4b | |
parent | da92e91769945648500819508374e2b15b79fdc8 (diff) | |
download | ikiwiki-182043667058d302d33aefa12dcb8678799d7fc7.tar ikiwiki-182043667058d302d33aefa12dcb8678799d7fc7.tar.gz |
escape something being interpreted as a directive
-rw-r--r-- | doc/tips/convert_mediawiki_to_ikiwiki.mdwn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tips/convert_mediawiki_to_ikiwiki.mdwn b/doc/tips/convert_mediawiki_to_ikiwiki.mdwn index 45df683de..3b8e5043c 100644 --- a/doc/tips/convert_mediawiki_to_ikiwiki.mdwn +++ b/doc/tips/convert_mediawiki_to_ikiwiki.mdwn @@ -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) |