mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1418841 [Bug in tooltip for "Auto close tags" checkbox in preferences](https://bugs.launchpad.net/calibre/+bug/1418841)
This commit is contained in:
parent
afc333449e
commit
51e6e70765
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user