This commit is contained in:
Kovid Goyal 2011-08-24 15:48:14 -06:00
parent 6a4bfa920c
commit b5bc1ef8f7

View File

@ -590,7 +590,7 @@ class MobiWriter(object):
Write the PalmDB header
'''
title = ascii_filename(unicode(self.oeb.metadata.title[0])).replace(
' ', '_')
' ', '_')[:32]
title = title + (b'\0' * (32 - len(title)))
now = int(time.time())
nrecords = len(self.records)