Some logging for the stages of the DOCX input plugin

This commit is contained in:
Kovid Goyal 2013-06-13 09:26:24 +05:30
parent 1cf55c1fca
commit 19cb39873c

View File

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