Don’t trim whitespace off of lines.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 2 Apr 2011 12:19:35 +0000 (14:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 2 Apr 2011 12:19:35 +0000 (14:19 +0200)
src/main/java/net/pterodactylus/sone/text/FreenetLinkParser.java

index ad9381d..67cd7e3 100644 (file)
@@ -100,8 +100,7 @@ public class FreenetLinkParser implements Parser<FreenetLinkParserContext> {
                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;
                                }