diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index 04d8ade536..4421623869 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -73,6 +73,8 @@ class FB2MLizer(object): return '\n' + output def clean_text(self, text): + # Remove empty tags. + text = re.sub(r'(?miu)<(strong|emphasis|strikethrough|sub|sup)>\s*\1>', '', text) # Condense empty paragraphs into a line break. text = re.sub(r'(?miu)(
\s*
\s*){3,}', '