Annotations browser: Show a dot for highlights with notes. Fixes #1899839 [[Enhancement] Show a dot when a highlight contains annotations in the Annotations browser](https://bugs.launchpad.net/calibre/+bug/1899839)

This commit is contained in:
Kovid Goyal 2020-11-02 13:41:41 +05:30
parent c78081c26e
commit be110c453d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -75,7 +75,7 @@ def annotation_title(atype, singular=False):
class AnnotsResultsDelegate(ResultsDelegate):
add_ellipsis = False
emphasize_text = True
emphasize_text = False
def result_data(self, result):
if not isinstance(result, dict):
@ -90,6 +90,8 @@ class AnnotsResultsDelegate(ResultsDelegate):
before, text = parts
else:
text = parts[0]
if result.get('annotation', {}).get('notes'):
before = '' + (before or '')
return False, before, text, after