mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-09 12:55:48 +01:00
Enhancement #1956129: render line breaks in custom column *description* on hover column title.
This commit is contained in:
parent
3f16b5ac61
commit
6fcd0eb8a5
1 changed files with 3 additions and 1 deletions
|
|
@ -1038,7 +1038,9 @@ def headerData(self, section, orientation, role):
|
|||
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…
Reference in a new issue