commit | 274600ea83403e4665d50957c0d1195e5a9cd1ee | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Wed Nov 03 20:09:06 2021 +0100 |
committer | Akron <nils@diewald-online.de> | Wed Nov 03 20:09:06 2021 +0100 |
tree | ba09964603eab57a37ee7992a780cdd5d30b057c | |
parent | 9c3bf7f9cab23cb43e0cf8b53da2847d5233d1bd [diff] [blame] |
Fix buffer flushing to work with tei2korapxml Change-Id: I54eef64bea40f4ebb528e7f9870b9277000a4c13
diff --git a/matrix.go b/matrix.go index 44b2180..ecb22be 100644 --- a/matrix.go +++ b/matrix.go
@@ -369,9 +369,16 @@ // No more runes to read if err != nil { - eof = true - break + if err == io.EOF { + eof = true + break + } + + log.Fatalln(err) + os.Exit(1) + return false } + buffer[buffi] = char buffi++ }