mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 05:53:10 +02:00
...
This commit is contained in:
parent
bfae849753
commit
da0c6f8048
1 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
from calibre.utils.config import JSONConfig
|
from calibre.utils.config import JSONConfig
|
||||||
from calibre.constants import DEBUG
|
from calibre.constants import DEBUG
|
||||||
from calibre import prints
|
from calibre import prints, prepare_string_for_xml
|
||||||
from calibre.utils.icu import sort_key, lower
|
from calibre.utils.icu import sort_key, lower
|
||||||
from calibre.gui2 import error_dialog, info_dialog
|
from calibre.gui2 import error_dialog, info_dialog
|
||||||
from calibre.utils.search_query_parser import SearchQueryParser, ParseException
|
from calibre.utils.search_query_parser import SearchQueryParser, ParseException
|
||||||
|
|
@ -520,7 +520,8 @@ def to_doc(self, index):
|
||||||
keys = _('None')
|
keys = _('None')
|
||||||
else:
|
else:
|
||||||
keys = ', '.join(keys)
|
keys = ', '.join(keys)
|
||||||
html = '<b>%s</b><br>%s: %s'%(shortcut['name'], _('Shortcuts'), keys)
|
html = '<b>%s</b><br>%s: %s'%(
|
||||||
|
prepare_string_for_xml(shortcut['name']), _('Shortcuts'), prepare_string_for_xml(keys))
|
||||||
else:
|
else:
|
||||||
# Group
|
# Group
|
||||||
html = '<h3>%s</h3>'%data.data
|
html = '<h3>%s</h3>'%data.data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue