mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Some logging for the stages of the DOCX input plugin
This commit is contained in:
parent
1cf55c1fca
commit
19cb39873c
@ -85,6 +85,7 @@ class Convert(object):
|
|||||||
self.anchor_map = {}
|
self.anchor_map = {}
|
||||||
self.link_map = defaultdict(list)
|
self.link_map = defaultdict(list)
|
||||||
|
|
||||||
|
self.log.debug('Converting Word markup to HTML')
|
||||||
self.read_page_properties(doc)
|
self.read_page_properties(doc)
|
||||||
for wp, page_properties in self.page_map.iteritems():
|
for wp, page_properties in self.page_map.iteritems():
|
||||||
self.current_page = page_properties
|
self.current_page = page_properties
|
||||||
@ -136,6 +137,7 @@ class Convert(object):
|
|||||||
child.tail = '\n\t'
|
child.tail = '\n\t'
|
||||||
self.body[-1].tail = '\n'
|
self.body[-1].tail = '\n'
|
||||||
|
|
||||||
|
self.log.debug('Converting styles to CSS')
|
||||||
self.styles.generate_classes()
|
self.styles.generate_classes()
|
||||||
for html_obj, obj in self.object_map.iteritems():
|
for html_obj, obj in self.object_map.iteritems():
|
||||||
style = self.styles.resolve(obj)
|
style = self.styles.resolve(obj)
|
||||||
@ -158,6 +160,7 @@ class Convert(object):
|
|||||||
notes_header.set('class', '%s notes-header' % cls)
|
notes_header.set('class', '%s notes-header' % cls)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
self.log.debug('Cleaning up redundant markup generated by Word')
|
||||||
cleanup_markup(self.html, self.styles)
|
cleanup_markup(self.html, self.styles)
|
||||||
|
|
||||||
return self.write()
|
return self.write()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user