diff --git a/readability/readability.py b/readability/readability.py index d9431e8..9029a2f 100755 --- a/readability/readability.py +++ b/readability/readability.py @@ -290,6 +290,8 @@ class Document: def transform_misused_divs_into_paragraphs(self): for elem in self.tags(self.html, 'div'): # transform
s that do not contain other block elements into

s + #FIXME: The current implementation ignores all descendants that are not direct children of elem + # This results in incorrect results in case there is an buried within an for example if not REGEXES['divToPElementsRe'].search(unicode(''.join(map(tostring, list(elem))))): #self.debug("Altering %s to p" % (describe(elem))) elem.tag = "p"