Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #11 from pyr/master

include span in weighted elements
  • Loading branch information...
commit 4bae4b1565a530c33c42c2f699ba889a1dd250e3 2 parents 956816c + f23b112
Peter authored July 04, 2012
2  src/main/java/de/jetwick/snacktory/ArticleTextExtractor.java
@@ -487,7 +487,7 @@ private String doTitleSplits(String title, String delimeter) {
487 487
         Map<Element, Object> nodes = new LinkedHashMap<Element, Object>(64);
488 488
         int score = 100;
489 489
         for (Element el : doc.select("body").select("*")) {
490  
-            if ("p;div;td;h1;h2".contains(el.tagName())) {
  490
+            if ("p;div;td;h1;h2;span".contains(el.tagName())) {
491 491
                 nodes.put(el, null);
492 492
                 setScore(el, score);
493 493
                 score = score / 2;

0 notes on commit 4bae4b1

Please sign in to comment.
Something went wrong with that request. Please try again.