diff --git a/expfmt/text_parse.go b/expfmt/text_parse.go index 84be0643..eb03080a 100644 --- a/expfmt/text_parse.go +++ b/expfmt/text_parse.go @@ -144,7 +144,9 @@ func (p *TextParser) startOfLine() stateFn { if p.skipBlankTab(); p.err != nil { // End of input reached. This is the only case where // that is not an error but a signal that we are done. - p.err = nil + if p.err == io.EOF { + p.err = nil + } return nil } switch p.currentByte {