From 6b3961cd30ac929b27933f385471f59bc0d165ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wei=C3=9F?= Date: Sat, 24 Mar 2012 09:54:41 +0100 Subject: [PATCH] Fixing gap in node_length coverage. --- readability/readability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readability/readability.py b/readability/readability.py index 9b00234..11c0e24 100755 --- a/readability/readability.py +++ b/readability/readability.py @@ -159,7 +159,7 @@ class Document: if node_length > 80 and link_density < 0.25: append = True - elif node_length < 80 and link_density == 0 and re.search('\.( |$)', node_content): + elif node_length <= 80 and link_density == 0 and re.search('\.( |$)', node_content): append = True if append: