From aafc6d97649de2a72e303507953872205f8fbc5b Mon Sep 17 00:00:00 2001 From: John Schember Date: Wed, 15 Apr 2009 19:57:42 -0400 Subject: [PATCH] Fix text output regex --- src/calibre/ebooks/txt/writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)