diff --git a/sio/tableio/writer.go b/sio/tableio/writer.go index d3866acab8..86b7440efa 100644 --- a/sio/tableio/writer.go +++ b/sio/tableio/writer.go @@ -43,6 +43,7 @@ func (w *Writer) Write(r super.Value) error { if r.Type() != w.typ { if w.typ != nil { w.flush() + w.writer.Write([]byte("---\n")) w.nline = 0 } // First time, or new descriptor, print header diff --git a/sio/tableio/ztests/multiple-types.yaml b/sio/tableio/ztests/multiple-types.yaml new file mode 100644 index 0000000000..a8b1997f09 --- /dev/null +++ b/sio/tableio/ztests/multiple-types.yaml @@ -0,0 +1,14 @@ +spq: pass + +input: | + {s:"foo",val:1} + {s:"bar"} + +output-flags: -f table + +output: | + s val + foo 1 + --- + s + bar