saw icon indicating copy to clipboard operation
saw copied to clipboard

Extra newlines in `saw get` output

Open a-h opened this issue 1 year ago • 0 comments

There's an extra newline if your log entries already end with a newline.

image

I notice that if you're streaming logs, the newline gets stripped.

https://github.com/TylerBrock/saw/blob/master/blade/blade.go#L146-L147

Easy fix though.

https://github.com/a-h/saw/commit/21e6320f3620099f2fce2c72aedf86d3afbcb2bc

Then gives the expected output.

image

a-h avatar Sep 14 '22 10:09 a-h