mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1956129 [[Enhancement] render line breaks in custom column *description* on hover column title](https://bugs.launchpad.net/calibre/+bug/1956129)
This commit is contained in:
commit
f3183880e7
@ -1038,7 +1038,9 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
if fm['is_custom']:
|
||||
cust_desc = fm['display'].get('description', '')
|
||||
if cust_desc:
|
||||
cust_desc = '<br><b>{}</b>'.format(_('Description:')) + ' ' + prepare_string_for_xml(cust_desc)
|
||||
cust_desc = ('<br><b>{}</b>'.format(_('Description:')) +
|
||||
'<span style="white-space:pre-wrap"> ' +
|
||||
prepare_string_for_xml(cust_desc) + '</span>')
|
||||
return '<b>{}</b>: {}'.format(
|
||||
prepare_string_for_xml(title),
|
||||
_('The lookup/search name is <i>{0}</i>').format(ht) + cust_desc + is_cat
|
||||
|
Loading…
x
Reference in New Issue
Block a user