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'
')