minor fix

This commit is contained in:
Miroslav Stampar 2010-12-04 14:43:35 +00:00
parent 1f795622b3
commit 3f9450b9dc

View File

@ -1642,10 +1642,10 @@ def removeDynamicContent(page):
for item in kb.dynamicMarkings: for item in kb.dynamicMarkings:
prefix, suffix = item prefix, suffix = item
if prefix is None: if prefix is None:
getCompiledRegex('(?s)^.+%s' % suffix).sub(suffix, page) page = getCompiledRegex('(?s)^.+%s' % suffix).sub(suffix, page)
elif suffix is None: elif suffix is None:
getCompiledRegex('(?s)%s.+$' % prefix).sub(prefix, page) page = getCompiledRegex('(?s)%s.+$' % prefix).sub(prefix, page)
else: else:
getCompiledRegex('(?s)%s.+%s' % (prefix, suffix)).sub('%s%s' % (prefix, suffix), page) page = getCompiledRegex('(?s)%s.+%s' % (prefix, suffix)).sub('%s%s' % (prefix, suffix), page)
return page return page