On Sun, May 18, 2008 at 5:25 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
I have an ugly fix for this :
@@ -3412,8 +3412,14 @@ title = "[%s%s]" % (title[0].upper(), title[0].lower()) + title[1:] # spaces and underscores in page titles are interchangeable, and collapsible title = title.replace(r"\ ", "[ _]+").replace(r"_", "[ _]+")
- caseInsensCatNS = ''
- for c in catNamespace:
if c != '|':
caseInsensCatNS += '[' + c + c.swapcase() + ']'
else:
categoryR = re.compile(r'[[\s*(%s)\s*:\s*%s\s*((?:|[^]]+)?]])'caseInsensCatNS += '|'
% (catNamespace, title), re.I)
% (caseInsensCatNS, title))
but, oh well, it's ugly :(
Do you guys have another prettier fix here ? :)
''.join(['[%s%s]' % (i.upper(), i.lower()) for i in ns])
Equally ugly ;)
Bryan