~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/gui2/comments_editor.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-02-27 07:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: package-import@ubuntu.com-20140227074806-64wdebb3ptosxhhx
Tags: upstream-1.25.0+dfsg
ImportĀ upstreamĀ versionĀ 1.25.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
        def fget(self):
336
336
            ans = u''
337
337
            try:
 
338
                if not self.page().mainFrame().documentElement().findFirst('meta[name="calibre-dont-sanitize"]').isNull():
 
339
                    # Bypass cleanup if special meta tag exists
 
340
                    return unicode(self.page().mainFrame().toHtml())
338
341
                check = unicode(self.page().mainFrame().toPlainText()).strip()
339
342
                raw = unicode(self.page().mainFrame().toHtml())
340
343
                raw = xml_to_unicode(raw, strip_encoding_pats=True,