Fix #1418841 [Bug in tooltip for "Auto close tags" checkbox in preferences](https://bugs.launchpad.net/calibre/+bug/1418841)

This commit is contained in:
Kovid Goyal 2015-02-06 13:32:06 +05:30
parent afc333449e
commit 51e6e70765

View File

@ -20,6 +20,7 @@ from PyQt5.Qt import (
QFontComboBox, QPushButton, QSizePolicy, QHBoxLayout, QGroupBox, QFontComboBox, QPushButton, QSizePolicy, QHBoxLayout, QGroupBox,
QToolButton, QVBoxLayout, QSpacerItem, QTimer) QToolButton, QVBoxLayout, QSpacerItem, QTimer)
from calibre import prepare_string_for_xml
from calibre.gui2.keyboard import ShortcutConfig from calibre.gui2.keyboard import ShortcutConfig
from calibre.gui2.tweak_book import tprefs, toolbar_actions, editor_toolbar_actions, actions 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 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 = self('auto_close_tags')
lw.setText(_('Auto &close tags when typing </')) lw.setText(_('Auto &close tags when typing </'))
lw.setToolTip('<p>' + _( lw.setToolTip('<p>' + prepare_string_for_xml(_(
'With this option, every time you type </ the current HTML closing tag is auto-completed')) 'With this option, every time you type </ the current HTML closing tag is auto-completed')))
l.addRow(lw) l.addRow(lw)
lw = self('editor_show_char_under_cursor') lw = self('editor_show_char_under_cursor')