mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
33af80f8bb
commit
388083e92f
@ -220,7 +220,7 @@ class TextEdit(PlainTextEdit):
|
||||
sclass = {'html':HTMLSmarts, 'xml':HTMLSmarts, 'css':CSSSmarts}.get(syntax, None)
|
||||
if sclass is not None:
|
||||
self.smarts = sclass(self)
|
||||
self.setPlainText(unicodedata.normalize('NFC', text))
|
||||
self.setPlainText(unicodedata.normalize('NFC', unicode(text)))
|
||||
if process_template and QPlainTextEdit.find(self, '%CURSOR%'):
|
||||
c = self.textCursor()
|
||||
c.insertText('')
|
||||
|
Loading…
x
Reference in New Issue
Block a user