mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
KF8 Output: Fix invalid output being generated for some files with alrge blocks on non-ascii text
This commit is contained in:
parent
6cef54dbae
commit
588f0a6ef1
@ -305,7 +305,7 @@ class Chunker(object):
|
|||||||
ans.append(start)
|
ans.append(start)
|
||||||
while rest:
|
while rest:
|
||||||
start, rest = split_multibyte_text(rest)
|
start, rest = split_multibyte_text(rest)
|
||||||
ans.append(b'<span class="AmznBigTextBlock">' + start + '</span>')
|
ans.append(b'<span class="AmznBigTextBlock">' + start + b'</span>')
|
||||||
return [Chunk(x, self.chunk_selector) for x in ans]
|
return [Chunk(x, self.chunk_selector) for x in ans]
|
||||||
|
|
||||||
def merge_small_chunks(self, chunks):
|
def merge_small_chunks(self, chunks):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user