Fix text output regex

This commit is contained in:
John Schember 2009-04-15 19:57:42 -04:00
parent 959f355043
commit aafc6d9764

View File

@ -76,7 +76,7 @@ class TxtWriter(object):
text = re.sub('(?imu)</[ ]*%s[ ]*>' % tag, '\n\n', text)
for tag in ['hr', 'br']:
text = re.sub('(?imu)<[ ]*%s[ ]*/*?>' % tag, '\n\n', text)
text = re.sub('(?imu)<[ ]*%s.*?>' % tag, '\n\n', text)
# Remove any tags that do not need special processing.
text = re.sub('<.*?>', '', text)