From 5e6405783541b87fa3097d282c903c5cd06148af Mon Sep 17 00:00:00 2001 From: John Schember Date: Wed, 7 Mar 2012 08:28:59 -0500 Subject: [PATCH] Textile output: Fix issue with blockquotes and having sentences getting removed. --- src/calibre/ebooks/txt/textileml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/txt/textileml.py b/src/calibre/ebooks/txt/textileml.py index 5430f86f81..9b63386741 100644 --- a/src/calibre/ebooks/txt/textileml.py +++ b/src/calibre/ebooks/txt/textileml.py @@ -106,7 +106,7 @@ class TextileMLizer(OEB2HTML): #correct blockcode paras text = re.sub(r'\npre\.\n?\nbc\.', r'\nbc.', text) #correct blockquote paras - text = re.sub(r'\nbq\.\n?\np.*\. ', r'\nbq. ', text) + text = re.sub(r'\nbq\.\n?\np.*?\. ', r'\nbq. ', text) #reduce blank lines text = re.sub(r'\n{3}', r'\n\np. \n\n', text)