diff --git a/fanficdownloader/htmlheuristics.py b/fanficdownloader/htmlheuristics.py
index 52a78df4..7087c393 100644
--- a/fanficdownloader/htmlheuristics.py
+++ b/fanficdownloader/htmlheuristics.py
@@ -33,9 +33,12 @@ def replace_br_with_p(body):
if body.find('>') == -1 or body.rfind('<') == -1:
return body
+ # logger.debug(u'---')
# logger.debug(u'BODY start.: ' + body[:250])
+ # logger.debug(u'--')
# logger.debug(u'BODY end...: ' + body[-250:])
# logger.debug(u'BODY.......: ' + body)
+ # logger.debug(u'---')
# clean breaks (
), removing whitespaces between them.
body = re.sub(r'\s*
]*>\s*', r'
', body)
@@ -43,14 +46,14 @@ 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.
- if is_valid_block(body) and body.find('