From 51e6e707650cf85124dbf0985f1723575e02e172 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Feb 2015 13:32:06 +0530 Subject: [PATCH] Fix #1418841 [Bug in tooltip for "Auto close tags" checkbox in preferences](https://bugs.launchpad.net/calibre/+bug/1418841) --- src/calibre/gui2/tweak_book/preferences.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tweak_book/preferences.py b/src/calibre/gui2/tweak_book/preferences.py index b4e3b1a527..99b1fd9030 100644 --- a/src/calibre/gui2/tweak_book/preferences.py +++ b/src/calibre/gui2/tweak_book/preferences.py @@ -20,6 +20,7 @@ from PyQt5.Qt import ( QFontComboBox, QPushButton, QSizePolicy, QHBoxLayout, QGroupBox, QToolButton, QVBoxLayout, QSpacerItem, QTimer) +from calibre import prepare_string_for_xml from calibre.gui2.keyboard import ShortcutConfig from calibre.gui2.tweak_book import tprefs, toolbar_actions, editor_toolbar_actions, actions from calibre.gui2.tweak_book.editor.themes import default_theme, all_theme_names, ThemeEditor @@ -196,8 +197,8 @@ class EditorSettings(BasicSettings): lw = self('auto_close_tags') lw.setText(_('Auto &close tags when typing ' + _( - 'With this option, every time you type ' + prepare_string_for_xml(_( + 'With this option, every time you type