mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix an infinite loop in the LRF renderer
This commit is contained in:
parent
57a3121f6c
commit
7394a508e0
@ -315,6 +315,8 @@ class TextBlock(object):
|
|||||||
raw = raw[pos:]
|
raw = raw[pos:]
|
||||||
if line_filled:
|
if line_filled:
|
||||||
self.end_line()
|
self.end_line()
|
||||||
|
if not pos:
|
||||||
|
break
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
for line in self.lines:
|
for line in self.lines:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user