From: David ‘Bombe’ Roden Date: Fri, 16 Sep 2011 10:27:08 +0000 (+0200) Subject: Add some documentation for later when I have to look at it again. X-Git-Tag: 0.7^2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=79f1429cf43a59b6e539934555844b3d3ae6bee7;p=Sone.git Add some documentation for later when I have to look at it again. --- diff --git a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java index 0c20abe..d271203 100644 --- a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java +++ b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java @@ -123,6 +123,11 @@ public class SoneTextParser implements Parser { 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@");