mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #2555 (Lit output issues)
This commit is contained in:
parent
d17720383a
commit
7dd7ad65dd
@ -6,7 +6,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
'''
|
'''
|
||||||
Freeze app into executable using py2exe.
|
Freeze app into executable using py2exe.
|
||||||
'''
|
'''
|
||||||
QT_DIR = 'C:\\Qt\\4.4.3'
|
QT_DIR = 'C:\\Qt\\4.5.1'
|
||||||
LIBUSB_DIR = 'C:\\libusb'
|
LIBUSB_DIR = 'C:\\libusb'
|
||||||
LIBUNRAR = 'C:\\Program Files\\UnrarDLL\\unrar.dll'
|
LIBUNRAR = 'C:\\Program Files\\UnrarDLL\\unrar.dll'
|
||||||
PDFTOHTML = 'C:\\cygwin\\home\\kovid\\poppler-0.10.6\\rel\\pdftohtml.exe'
|
PDFTOHTML = 'C:\\cygwin\\home\\kovid\\poppler-0.10.6\\rel\\pdftohtml.exe'
|
||||||
|
@ -475,7 +475,7 @@ class LitWriter(object):
|
|||||||
elif isinstance(data, unicode):
|
elif isinstance(data, unicode):
|
||||||
data = data.encode('utf-8')
|
data = data.encode('utf-8')
|
||||||
elif hasattr(data, 'cssText'):
|
elif hasattr(data, 'cssText'):
|
||||||
data = str(data)
|
data = str(item)
|
||||||
self._add_file(name, data, secnum)
|
self._add_file(name, data, secnum)
|
||||||
item.size = len(data)
|
item.size = len(data)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user