[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 @@ 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()