mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -445,7 +445,7 @@ class Document:
|
|||||||
# self.debug(sib.text_content())
|
# self.debug(sib.text_content())
|
||||||
sib_content_length = text_length(sib)
|
sib_content_length = text_length(sib)
|
||||||
if sib_content_length:
|
if sib_content_length:
|
||||||
i =+ 1
|
i += 1
|
||||||
siblings.append(sib_content_length)
|
siblings.append(sib_content_length)
|
||||||
if i == x:
|
if i == x:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user