mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Oops
This commit is contained in:
parent
a0d6df759d
commit
78601341a3
@ -175,8 +175,8 @@ def add_pipeline_options(parser, plumber):
|
||||
if rec.level < rec.HIGH:
|
||||
option_recommendation_to_cli_option(add_option, rec)
|
||||
|
||||
option_recommendation_to_cli_option(parser.add_option,
|
||||
plumber.get_option_by_name('list_recipes'))
|
||||
parser.add_option('--list-recipes', default=False, action='store_true',
|
||||
help=_('List builtin recipes'))
|
||||
|
||||
def option_parser():
|
||||
return OptionParser(usage=USAGE)
|
||||
|
@ -107,10 +107,10 @@ class MOBIOutput(OutputFormatPlugin):
|
||||
sections = list(toc)
|
||||
for i,x in enumerate(sections):
|
||||
x.klass = 'section'
|
||||
articles = list(x)
|
||||
if articles:
|
||||
articles_ = list(x)
|
||||
if articles_:
|
||||
self.oeb.manifest.remove(self.oeb.manifest.hrefs[x.href])
|
||||
x.href = articles[0].href
|
||||
x.href = articles_[0].href
|
||||
|
||||
|
||||
for sec in sections:
|
||||
|
@ -1315,15 +1315,6 @@ class MobiWriter(object):
|
||||
else :
|
||||
raise NotImplementedError('Indexing for mobitype 0x%X not implemented' % booktype)
|
||||
|
||||
# Dump the current HTML Record Data / TBS
|
||||
# GR diagnostics
|
||||
if False :
|
||||
self._HTMLRecords[nrecords].dumpData(nrecords, self._oeb)
|
||||
outstr = ''
|
||||
for eachbyte in self._tbSequence:
|
||||
outstr += '0x%02X ' % ord(eachbyte)
|
||||
self._oeb.logger.info(' Trailing Byte Sequence: %s\n' % outstr)
|
||||
|
||||
# Write the sequence
|
||||
record.write(self._tbSequence)
|
||||
|
||||
@ -1522,12 +1513,6 @@ class MobiWriter(object):
|
||||
# - 0x4: <uncrossable breaks><size>
|
||||
# GR: Use 7 for indexed files, 5 for unindexed
|
||||
# Setting bit 2 (0x4) disables <guide><reference type="start"> functionality
|
||||
'''
|
||||
if INDEXING and self._indexable :
|
||||
record0.write(pack('>I', 7))
|
||||
else:
|
||||
record0.write(pack('>I', 5))
|
||||
'''
|
||||
|
||||
trailingDataFlags = 1
|
||||
if self._indexable :
|
||||
|
Loading…
x
Reference in New Issue
Block a user