Skip to content

Commit 8214ef0

Browse files
committed
Fix empty lines marshalling
1 parent 4a7316b commit 8214ef0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/decode.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ func (r *YAMLReader) Read() ([]byte, error) {
5858
// We hit the next entry
5959
return buffer.Bytes(), nil
6060
}
61-
if rr[0] != ' ' {
61+
if rr[0] != ' ' && rr[0] != '\n' {
62+
// TODO: match 'kind: List' exactly instead
6263
// Not part of the list anymore, just be end of the list
6364
// Drain the list so we don't read more
6465
if _, err := io.Copy(io.Discard, r.reader.reader); err != nil {

0 commit comments

Comments
 (0)