def fix_html(self): if self.syntax == "html": from calibre.ebooks.oeb.polish.pretty import fix_html self.editor.replace_text(fix_html(current_container(), unicode(self.editor.toPlainText())).decode("utf-8")) return True return False
def fix_html(self): if self.syntax == 'html': from calibre.ebooks.oeb.polish.pretty import fix_html self.editor.replace_text( fix_html(current_container(), unicode(self.editor.toPlainText())).decode('utf-8')) return True return False
def fix_html(self): from calibre.ebooks.oeb.polish.pretty import fix_html self.replace_text(fix_html(unicode(self.toPlainText())).decode('utf-8'))