~ubuntu-branches/debian/experimental/calibre/experimental

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/mobi/debug/mobi6.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-10-03 23:18:14 UTC
  • mfrom: (1.3.36)
  • Revision ID: package-import@ubuntu.com-20121003231814-i67zl632zxlj4qn1
Tags: 0.9.0+dfsg-1
* New upstream release.
* debian/control, debian/rules: ttf-liberation is no more, move to
  fonts-liberation. Thanks to Kan-Ru Chen! (Closes: #674838)
* debian/calibre.install: Drop pyPdf, not shipped upstream any more.
* debian/control: Add new python-netifaces dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
802
802
            alltext += rec.raw
803
803
        of.seek(0)
804
804
 
805
 
    root = html.fromstring(alltext.decode('utf-8'))
 
805
    root = html.fromstring(alltext.decode(f.mobi_header.encoding))
806
806
    with open(os.path.join(ddir, 'pretty.html'), 'wb') as of:
807
807
        of.write(html.tostring(root, pretty_print=True, encoding='utf-8',
808
808
            include_meta_content_type=True))