Merge pull request #10 from facundo/master

Fix: Document.score_paragraphs should use ._html() not .html in case it's used not from .summary() method.
Thanks to facundo.
pull/11/merge
Yuri Baburov 12 years ago
commit f9b604c9a8

@ -196,7 +196,7 @@ class Document:
#self.debug(str([describe(node) for node in self.tags(self.html, "div")]))
ordered = []
for elem in self.tags(self.html, "p", "pre", "td"):
for elem in self.tags(self._html(), "p", "pre", "td"):
parent_node = elem.getparent()
if parent_node is None:
continue

Loading…
Cancel
Save