This commit is contained in:
Kovid Goyal 2023-08-02 22:13:17 +05:30
parent 71fe92838b
commit a743a062e2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -67,7 +67,7 @@ class Delegate(QStyledItemDelegate):
d = QTextDocument()
d.setDocumentMargin(0)
lines = (index.data(Qt.ItemDataRole.DisplayRole) or ' \n ').splitlines()
d.setHtml(f'<b>{lines[0]}</b><br><small>{lines[1]}')
d.setHtml(f'<b>{prepare_string_for_xml(lines[0])}</b><br><small>{prepare_string_for_xml(lines[1])}')
return d
def sizeHint(self, option, index):