Correctly handle final data
diff --git a/datokenizer.go b/datokenizer.go
index b04b487..b89bccd 100644
--- a/datokenizer.go
+++ b/datokenizer.go
@@ -1327,10 +1327,9 @@
 				fmt.Println("-> Flush buffer:", string(data))
 			}
 			writer.Write(data)
-		}
-
-		if dat.isTokenEnd(t) {
-			writer.WriteRune('\n')
+			if dat.isTokenEnd(t) {
+				writer.WriteRune('\n')
+			}
 		}
 
 		// There may be a new line at the end, from an epsilon, so we go on!