diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index 51bfaa7293..89c12db103 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -73,6 +73,10 @@ class FB2MLizer(object): text = re.sub(r'(?miu)
\s*
', '', text) text = re.sub(r'(?miu)\s+', '', text) text = re.sub(r'(?miu)', '
\n\n', text) + + if self.opts.insert_blank_line: + text = re.sub(r'(?miu)
', '