mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
ODT Input: Fix a regression that broke conversion of ODT files with footnotes. Fixes #1898441 [Problem converting from .odt to .epub](https://bugs.launchpad.net/calibre/+bug/1898441)
This commit is contained in:
parent
e6c651c5bf
commit
0b386c3cc7
@ -927,9 +927,9 @@ dl.notes dd:last-of-type { page-break-after: avoid }
|
|||||||
# self.closetag('sup', False)
|
# self.closetag('sup', False)
|
||||||
self.writeout('[')
|
self.writeout('[')
|
||||||
self.opentag('a', {'href': "#citation-%d" % key})
|
self.opentag('a', {'href': "#citation-%d" % key})
|
||||||
self.writeout(u"\u2190%d".encode('utf-8') % key)
|
self.writeout("←%d" % key)
|
||||||
self.closetag('a')
|
self.closetag('a')
|
||||||
self.writeout(u']\xa0'.encode('utf-8'))
|
self.writeout(']\xa0')
|
||||||
self.closetag('dt')
|
self.closetag('dt')
|
||||||
self.opentag('dd')
|
self.opentag('dd')
|
||||||
self.writeout(note['body'])
|
self.writeout(note['body'])
|
||||||
@ -1604,7 +1604,7 @@ dl.notes dd:last-of-type { page-break-after: avoid }
|
|||||||
return self.xhtml()
|
return self.xhtml()
|
||||||
|
|
||||||
def _wlines(self,s):
|
def _wlines(self,s):
|
||||||
if s != '':
|
if s:
|
||||||
self.lines.append(s)
|
self.lines.append(s)
|
||||||
|
|
||||||
def xhtml(self):
|
def xhtml(self):
|
||||||
@ -1613,7 +1613,7 @@ dl.notes dd:last-of-type { page-break-after: avoid }
|
|||||||
return ''.join(self.lines)
|
return ''.join(self.lines)
|
||||||
|
|
||||||
def _writecss(self, s):
|
def _writecss(self, s):
|
||||||
if s != '':
|
if s:
|
||||||
self._csslines.append(s)
|
self._csslines.append(s)
|
||||||
|
|
||||||
def _writenothing(self, s):
|
def _writenothing(self, s):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user