mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -18,7 +18,8 @@ def bookmark_get_cfi(b):
|
|||||||
def highlight_get_cfi(hl):
|
def highlight_get_cfi(hl):
|
||||||
cfi = hl.start_cfi
|
cfi = hl.start_cfi
|
||||||
if 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):
|
def sort_annot_list(annots, get_cfi_func):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user