From 5b4d4e2cc22e6a13911cf366599a3691ed902f2d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 Jun 2021 08:59:57 +0530 Subject: [PATCH] Edit book: Fix non breaking spaces in snippets being converted to normal spaces. Fixes #1929827 [snippets do not accept non breaking spaces](https://bugs.launchpad.net/calibre/+bug/1929827) --- src/calibre/gui2/tweak_book/editor/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/snippets.py b/src/calibre/gui2/tweak_book/editor/snippets.py index 322c3d4261..23dc8a8f56 100644 --- a/src/calibre/gui2/tweak_book/editor/snippets.py +++ b/src/calibre/gui2/tweak_book/editor/snippets.py @@ -481,7 +481,7 @@ class EditSnippet(QWidget): t.setPlaceholderText(_('The text used to trigger this snippet')) add_row(_('Tri&gger:'), t) - self.template = t = QPlainTextEdit(self) + self.template = t = PlainTextEdit(self) la.setBuddy(t) add_row(_('&Template:'), t)