Fix fileformat for newly created files

Fixes #1575
This commit is contained in:
Zachary Yedidia
2020-06-06 15:56:13 -04:00
parent 07860b8973
commit 466889f540
4 changed files with 25 additions and 6 deletions

View File

@@ -87,6 +87,8 @@ func NewLineArray(size uint64, endings FileFormat, reader io.Reader) *LineArray
br := bufio.NewReader(reader)
var loaded int
la.Endings = endings
n := 0
for {
data, err := br.ReadBytes('\n')