Permalink
Browse files

Merge pull request #11 from pyr/master

include span in weighted elements
  • Loading branch information...
2 parents 956816c + f23b112 commit 4bae4b1565a530c33c42c2f699ba889a1dd250e3 @karussell committed Jul 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/de/jetwick/snacktory/ArticleTextExtractor.java
View
2 src/main/java/de/jetwick/snacktory/ArticleTextExtractor.java
@@ -487,7 +487,7 @@ private String doTitleSplits(String title, String delimeter) {
Map<Element, Object> nodes = new LinkedHashMap<Element, Object>(64);
int score = 100;
for (Element el : doc.select("body").select("*")) {
- if ("p;div;td;h1;h2".contains(el.tagName())) {
+ if ("p;div;td;h1;h2;span".contains(el.tagName())) {
nodes.put(el, null);
setScore(el, score);
score = score / 2;

0 comments on commit 4bae4b1

Please sign in to comment.