From 6e7e1e5b046711366a1a0824701cfd389fe13b2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 2 Apr 2011 14:19:35 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20trim=20whitespace=20off=20of=20l?= =?utf8?q?ines.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/text/FreenetLinkParser.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.7.4