diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index a5745e1bc2..433db22fa1 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -103,6 +103,10 @@ class FB2MLizer(object): if self.opts.insert_blank_line: text = re.sub(r'(?miu)

', '

', text) + # Put line breaks between paragraphs on a separate line. + text = re.sub(r'(?miu)\s*', r'\n', text) + text = re.sub(r'(?miu)\s*

', '\n

', text) + return text def fb2_header(self):