From b2551d986e3f5c266a13ecb3e71c46f9ca17786b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 11 Mar 2021 12:29:40 +0530 Subject: [PATCH] Fix #1918581 [Device View: Column header tooltip doesn't render italics](https://bugs.launchpad.net/calibre/+bug/1918581) --- src/calibre/gui2/library/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index 875347837f..ce3cf405c7 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -1706,7 +1706,7 @@ class DeviceBooksModel(BooksModel): # {{{ text = self.headers[cname] return '{}: {}'.format( prepare_string_for_xml(text), - prepare_string_for_xml(_('The lookup/search name is {0}').format(self.column_map[section]))) + prepare_string_for_xml(_('The lookup/search name is')) + ' {}'.format(self.column_map[section])) if DEBUG and role == Qt.ItemDataRole.ToolTipRole and orientation == Qt.Orientation.Vertical: return (_('This book\'s UUID is "{0}"').format(self.db[self.map[section]].uuid)) if role != Qt.ItemDataRole.DisplayRole: