From 6d0739ed1a42904ada337c7a909e3569a7db0948 Mon Sep 17 00:00:00 2001 From: John Schember Date: Thu, 10 Mar 2011 20:44:36 -0500 Subject: [PATCH] FB2 Output: Fix bug where elements were put inside

tags. --- src/calibre/ebooks/fb2/fb2ml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index 43f93807a1..2c937fd357 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -72,7 +72,7 @@ class FB2MLizer(object): def clean_text(self, text): # Condense empty paragraphs into a line break. - text = re.sub(r'(?miu)(

\s*

\s*){3,}', '

', text) + text = re.sub(r'(?miu)(

\s*

\s*){3,}', '', text) # Remove empty paragraphs. text = re.sub(r'(?miu)

\s*

', '', text) # Clean up pargraph endings.