Add some documentation for later when I have to look at it again.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 Sep 2011 10:27:08 +0000 (12:27 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 Sep 2011 10:27:08 +0000 (12:27 +0200)
src/main/java/net/pterodactylus/sone/text/SoneTextParser.java

index 0c20abe..d271203 100644 (file)
@@ -123,6 +123,11 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
                                continue;
                        }
                        emptyLines = 0;
+                       /*
+                        * lineComplete tracks whether the block you are parsing is the
+                        * first block of the line. this is important because sometimes you
+                        * have to add an additional line break.
+                        */
                        boolean lineComplete = true;
                        while (line.length() > 0) {
                                int nextKsk = line.indexOf("KSK@");