mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ed716130f8
commit
3725e7eb79
@ -2050,7 +2050,7 @@ class MobiWriter(object):
|
|||||||
indices.write(pack('>H', pos)) # Save the offset for IDXTIndices
|
indices.write(pack('>H', pos)) # Save the offset for IDXTIndices
|
||||||
name = "%04X"%count
|
name = "%04X"%count
|
||||||
indxt.write(chr(len(name)) + name) # Write the name
|
indxt.write(chr(len(name)) + name) # Write the name
|
||||||
indxt.write(INDXT['article']) # entryType [0x0F | 0xDF | 0xFF | 0x3F]
|
indxt.write(INDXT['article']) # entryType [0x0F | 0xDF | 0xFF | 0x3F]
|
||||||
|
|
||||||
hasAuthor = True if self._ctoc_map[index]['authorOffset'] else False
|
hasAuthor = True if self._ctoc_map[index]['authorOffset'] else False
|
||||||
hasDescription = True if self._ctoc_map[index]['descriptionOffset'] else False
|
hasDescription = True if self._ctoc_map[index]['descriptionOffset'] else False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user