commit | df0a3ef3943832984515f19f84b0df2f0894047b | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Aug 09 15:53:45 2021 +0200 |
committer | Akron <nils@diewald-online.de> | Mon Aug 09 15:53:45 2021 +0200 |
tree | bfbecb142046de234d0428232b03ecebdb474a93 | |
parent | 439f4ecd8335acc369e9e81d73cb2b9a44ece93e [diff] [blame] |
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!