mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 08:16:48 +01:00
Content server viewer: Fix highlights not sorted correctly in the highlights panel. Fixes #1918436 [Highlights in viewer are not sorted correctly](https://bugs.launchpad.net/calibre/+bug/1918436)
This commit is contained in:
parent
c44bd3f94c
commit
bc84d139af
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ def bookmark_get_cfi(b):
|
|||
def highlight_get_cfi(hl):
|
||||
cfi = hl.start_cfi
|
||||
if cfi:
|
||||
return cfi[8:-1]
|
||||
si = hl.spine_index or 9999999999
|
||||
return f'/{si}/{cfi}'
|
||||
|
||||
|
||||
def sort_annot_list(annots, get_cfi_func):
|
||||
|
|
|
|||
Loading…
Reference in a new issue