escape something being interpreted as a directive

master
Jon Dowland 2009-11-17 15:55:01 +00:00
parent da92e91769
commit 1820436670
1 changed files with 1 additions and 1 deletions

View 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)