mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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)
|
sclass = {'html':HTMLSmarts, 'xml':HTMLSmarts, 'css':CSSSmarts}.get(syntax, None)
|
||||||
if sclass is not None:
|
if sclass is not None:
|
||||||
self.smarts = sclass(self)
|
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%'):
|
if process_template and QPlainTextEdit.find(self, '%CURSOR%'):
|
||||||
c = self.textCursor()
|
c = self.textCursor()
|
||||||
c.insertText('')
|
c.insertText('')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user