git://git.nikiroo.be
/
gofetch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Limit to 67 chars, fix content for LWN (still WIP)
[gofetch.git]
/
src
/
be
/
nikiroo
/
gofetch
/
support
/
LWN.java
diff --git
a/src/be/nikiroo/gofetch/support/LWN.java
b/src/be/nikiroo/gofetch/support/LWN.java
index 869380dd03ec4c4ab0cb14b6c08d4614141c16ab..e25bc92d519ed0d340b2d99695bfc167164ff5bf 100644
(file)
--- a/
src/be/nikiroo/gofetch/support/LWN.java
+++ b/
src/be/nikiroo/gofetch/support/LWN.java
@@
-54,7
+54,13
@@
public class LWN extends BasicSupport {
String title = titles.get(0).text();
String details = listing.children().get(0).text();
String title = titles.get(0).text();
String details = listing.children().get(0).text();
- String body = listing.children().get(1).text();
+ String body = "";
+ // All but the first and two last children
+ for (int i = 1 ; i < listing.children().size() - 2; i++) {
+ Element e = listing.children().get(i);
+ body = body.trim() + " " + e.text().trim();
+ }
+ body = body.trim();
String author = "";
int pos = details.indexOf(" by ");
String author = "";
int pos = details.indexOf(" by ");