mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
Fix an infinite loop in the LRF renderer
This commit is contained in:
parent
57a3121f6c
commit
7394a508e0
1 changed files with 2 additions and 0 deletions
|
|
@ -315,6 +315,8 @@ def process_text(self, raw):
|
|||
raw = raw[pos:]
|
||||
if line_filled:
|
||||
self.end_line()
|
||||
if not pos:
|
||||
break
|
||||
|
||||
def __iter__(self):
|
||||
for line in self.lines:
|
||||
|
|
|
|||
Loading…
Reference in a new issue