mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Some logging for the stages of the DOCX input plugin
This commit is contained in:
parent
1cf55c1fca
commit
19cb39873c
1 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ def __call__(self):
|
|||
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 @@ def __call__(self):
|
|||
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 @@ def __call__(self):
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue