From 19cb39873c7ecba462356a8ba0f856a4bf3f29ac Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Jun 2013 09:26:24 +0530 Subject: [PATCH] Some logging for the stages of the DOCX input plugin --- src/calibre/ebooks/docx/to_html.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index 9439a602a4..4593d9c75a 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -85,6 +85,7 @@ class Convert(object): self.anchor_map = {} self.link_map = defaultdict(list) + self.log.debug('Converting Word markup to HTML') self.read_page_properties(doc) for wp, page_properties in self.page_map.iteritems(): self.current_page = page_properties @@ -136,6 +137,7 @@ class Convert(object): child.tail = '\n\t' self.body[-1].tail = '\n' + self.log.debug('Converting styles to CSS') self.styles.generate_classes() for html_obj, obj in self.object_map.iteritems(): style = self.styles.resolve(obj) @@ -158,6 +160,7 @@ class Convert(object): notes_header.set('class', '%s notes-header' % cls) break + self.log.debug('Cleaning up redundant markup generated by Word') cleanup_markup(self.html, self.styles) return self.write()