[SBNOutput] Change debug log position to avoid confusion.

This commit is contained in:
Li Fanxi 2010-10-11 00:51:34 +08:00
parent 3ec09a3b40
commit 3c0673dcf5

View file

@ -166,8 +166,8 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
log.debug('File %s is unused in TOC. Continue in last chapter' % item.href)
mergeLast = True
else:
log.debug('Output the modified chapter again: %s' % lastName)
if oldTree != None and mergeLast:
log.debug('Output the modified chapter again: %s' % lastName)
outputFile = open(os.path.join(snbcDir, lastName), 'wb')
outputFile.write(etree.tostring(oldTree, pretty_print=True, encoding='utf-8'))
outputFile.close()