mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-30 13:24:56 +01:00
...
This commit is contained in:
commit
2aaf076422
2 changed files with 2 additions and 3 deletions
|
|
@ -41,7 +41,6 @@ def mlize_spine(self):
|
|||
html = re.sub(r'<\s*img[^>]*>', '', html)
|
||||
|
||||
text = html2textile(html)
|
||||
text = text.replace('%', '')
|
||||
|
||||
# Ensure the section ends with at least two new line characters.
|
||||
# This is to prevent the last paragraph from a section being
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ def start(self, tag, attrib):
|
|||
new_tag = '~'
|
||||
newline = ''
|
||||
elif tag == 'span':
|
||||
new_tag = '%'
|
||||
new_tag = ''
|
||||
newline = ''
|
||||
elif tag == 'a':
|
||||
self.block = True
|
||||
|
|
@ -147,7 +147,7 @@ def end(self, tag):
|
|||
elif tag == 'sub':
|
||||
self.final_output.append('~')
|
||||
elif tag == 'span':
|
||||
self.final_output.append('%')
|
||||
self.final_output.append('')
|
||||
elif tag == 'a':
|
||||
if self.a_part['title']:
|
||||
textilized = ' "%s (%s)":%s ' % (
|
||||
|
|
|
|||
Loading…
Reference in a new issue