From: David ‘Bombe’ Roden Date: Sat, 2 Apr 2011 12:19:35 +0000 (+0200) Subject: Don’t trim whitespace off of lines. X-Git-Tag: 0.6^2~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6e7e1e5b046711366a1a0824701cfd389fe13b2a;p=Sone.git Don’t trim whitespace off of lines. --- diff --git a/src/main/java/net/pterodactylus/sone/text/FreenetLinkParser.java b/src/main/java/net/pterodactylus/sone/text/FreenetLinkParser.java index ad9381d..67cd7e3 100644 --- a/src/main/java/net/pterodactylus/sone/text/FreenetLinkParser.java +++ b/src/main/java/net/pterodactylus/sone/text/FreenetLinkParser.java @@ -100,8 +100,7 @@ public class FreenetLinkParser implements Parser { boolean lastLineEmpty = true; int emptyLines = 0; while ((line = bufferedReader.readLine()) != null) { - line = line.trim(); - if (line.length() == 0) { + if (line.trim().length() == 0) { if (lastLineEmpty) { continue; }