diff --git a/src/calibre/ebooks/txt/writer.py b/src/calibre/ebooks/txt/writer.py index 0f84c32804..ea613010ef 100644 --- a/src/calibre/ebooks/txt/writer.py +++ b/src/calibre/ebooks/txt/writer.py @@ -76,7 +76,7 @@ class TxtWriter(object): text = re.sub('(?imu)' % 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)