mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:23:47 +02:00
Correct a "=+" typo in readability.py's sanitize method.
This was setting `i` to 1 every loop iteration instead of incrementing it.
This commit is contained in:
parent
ba6438efda
commit
24a2865d36
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ def sanitize(self, node, candidates):
|
|||
# self.debug(sib.text_content())
|
||||
sib_content_length = text_length(sib)
|
||||
if sib_content_length:
|
||||
i =+ 1
|
||||
i += 1
|
||||
siblings.append(sib_content_length)
|
||||
if i == x:
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue