mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
[SBNOutput] Change debug log position to avoid confusion.
This commit is contained in:
parent
3ec09a3b40
commit
3c0673dcf5
@ -166,8 +166,8 @@ class SNBOutput(OutputFormatPlugin):
|
|||||||
log.debug('File %s is unused in TOC. Continue in last chapter' % item.href)
|
log.debug('File %s is unused in TOC. Continue in last chapter' % item.href)
|
||||||
mergeLast = True
|
mergeLast = True
|
||||||
else:
|
else:
|
||||||
log.debug('Output the modified chapter again: %s' % lastName)
|
|
||||||
if oldTree != None and mergeLast:
|
if oldTree != None and mergeLast:
|
||||||
|
log.debug('Output the modified chapter again: %s' % lastName)
|
||||||
outputFile = open(os.path.join(snbcDir, lastName), 'wb')
|
outputFile = open(os.path.join(snbcDir, lastName), 'wb')
|
||||||
outputFile.write(etree.tostring(oldTree, pretty_print=True, encoding='utf-8'))
|
outputFile.write(etree.tostring(oldTree, pretty_print=True, encoding='utf-8'))
|
||||||
outputFile.close()
|
outputFile.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user