From bc0524132e4eb64d8370cdc5539ecfc263dd4705 Mon Sep 17 00:00:00 2001 From: asbjorn grandt Date: Sat, 24 Jan 2015 01:08:33 +0100 Subject: [PATCH] Rollback of potentially destructive while loop. --- fanficdownloader/htmlheuristics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficdownloader/htmlheuristics.py b/fanficdownloader/htmlheuristics.py index 7087c39..456f359 100644 --- a/fanficdownloader/htmlheuristics.py +++ b/fanficdownloader/htmlheuristics.py @@ -46,7 +46,7 @@ def replace_br_with_p(body): # change surrounding div to a p and remove attrs Top surrounding # tag in all cases now should be div, to just strip the first and # last tags. - while is_valid_block(body) and body.find('')+1:body.rindex('<')].strip() body = soup_up_div(u'
' + body + u'
')