mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
337ba18156
commit
7f5651e0bd
@ -166,7 +166,7 @@ def get_trailing_data(record, extra_data_flags):
|
||||
if i == 0:
|
||||
# Only the first two bits are used for the size since there can
|
||||
# never be more than 3 trailing multibyte chars
|
||||
sz = ord(record[-1]) & 0b11
|
||||
sz = (ord(record[-1]) & 0b11) + 1
|
||||
consumed = 1
|
||||
else:
|
||||
sz, consumed = decint(record, forward=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user