mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 00:23:16 +02:00
Textile output: Fix issue with blockquotes and sentences getting removed.
This commit is contained in:
commit
93bf57e6c4
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ def check_escaping(text, tests):
|
|||
#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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue