mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
466383c519
commit
41520c443d
@ -145,6 +145,8 @@ class Editor(QMainWindow):
|
|||||||
self.editor.load_text(template, syntax=self.syntax, process_template=True)
|
self.editor.load_text(template, syntax=self.syntax, process_template=True)
|
||||||
|
|
||||||
def get_raw_data(self):
|
def get_raw_data(self):
|
||||||
|
# The EPUB spec requires NFC normalization, see section 1.3.6 of
|
||||||
|
# http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm
|
||||||
return unicodedata.normalize('NFC', unicode(self.editor.toPlainText()).rstrip('\0'))
|
return unicodedata.normalize('NFC', unicode(self.editor.toPlainText()).rstrip('\0'))
|
||||||
|
|
||||||
def replace_data(self, raw, only_if_different=True):
|
def replace_data(self, raw, only_if_different=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user