mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-30 01:44:03 +02:00
...
This commit is contained in:
parent
c8f18ff02e
commit
bd14205637
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@
|
|||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import re
|
||||
import string
|
||||
|
||||
from calibre import prepare_string_for_xml
|
||||
from calibre.ebooks.unidecode.unidecoder import Unidecoder
|
||||
|
|
@ -48,7 +47,7 @@ def convert(self, txt, title='', epub_split_size_kb=0):
|
|||
processed = []
|
||||
for line in txt.split('\n\n'):
|
||||
processed.append(u'<p>%s</p>' % self.process_paragraph(prepare_string_for_xml(line.replace('\n', ' '))))
|
||||
|
||||
|
||||
txt = u'\n'.join(processed)
|
||||
txt = re.sub('[ ]{2,}', ' ', txt)
|
||||
html = HTML_TEMPLATE % (title, txt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue