This commit is contained in:
Kovid Goyal 2010-08-25 08:24:02 -06:00
parent 9229c2e342
commit 364c6101ec

View File

@ -91,7 +91,7 @@ class FB2MLizer(object):
return u'<?xml version="1.0" encoding="UTF-8"?>\n%s' % etree.tostring(etree.fromstring(output), encoding=unicode, pretty_print=True)
def clean_text(self, text):
text = re.sub('<p>\s*</p>', '', text)
text = re.sub(r'<p>\s*</p>', '', text)
return text