This commit is contained in:
Kovid Goyal 2014-03-29 11:23:21 +05:30
parent f105981333
commit 3c8ce70263

View File

@ -27,7 +27,8 @@ def fcis(text_length):
fcis += b'\x28\x00\x00\x00\x08\x00\x01\x00\x01\x00\x00\x00\x00' fcis += b'\x28\x00\x00\x00\x08\x00\x01\x00\x01\x00\x00\x00\x00'
return fcis return fcis
class MOBIHeader(Header): # {{{ class MOBIHeader(Header): # {{{
''' '''
Represents the first record in a MOBI file, contains all the metadata about Represents the first record in a MOBI file, contains all the metadata about
the file. the file.
@ -261,7 +262,7 @@ class KF8Book(object):
self.records.append(fcis(self.text_length)) self.records.append(fcis(self.text_length))
# EOF # EOF
self.records.append(b'\xe9\x8e\r\n') # EOF record self.records.append(b'\xe9\x8e\r\n') # EOF record
# Miscellaneous header fields # Miscellaneous header fields
self.compression = writer.compress self.compression = writer.compress