50
50
if isinstance(raw, unicode):
51
51
raw = raw.encode('utf-8')
52
52
open(u'debug-raw.html', 'wb').write(raw)
53
54
for f, root in parse_cache.items():
55
raw = html.tostring(root, encoding='utf-8', method='xml',
55
q.write(html.tostring(root, encoding='utf-8', method='xml',
57
60
accelerators['pagebreaks'] = '//h:div[@class="mbp_pagebreak"]'
58
61
return mr.created_opf_path