Fix layout issues in getContent() text
[gofetch.git] / src / be / nikiroo / gofetch / support / LWN.java
index eac12e5c239c37aa921d2945333d1b7fbc4c4e9a..aa2a653d905510e21bff24358b0deb16e2ce5d82 100644 (file)
@@ -53,12 +53,7 @@ public class LWN extends BasicSupport {
 
        @Override
        protected String getArticleId(Document doc, Element article) {
-               String id = getArticleIntUrl(doc, article).replaceAll("[^0-9]", "");
-               while (id.length() < 10) {
-                       id = "0" + id;
-               }
-
-               return id;
+               return getArticleIntUrl(doc, article).replaceAll("[^0-9]", "");
        }
 
        @Override
@@ -146,7 +141,7 @@ public class LWN extends BasicSupport {
                        // All but the first and two last children
                        for (int i = 1; i < listing.children().size() - 2; i++) {
                                Element e = listing.children().get(i);
-                               content = content.trim() + " " + e.text().trim();
+                               content = content.trim() + " " + getArticleText(e);
                        }
 
                        return content;