Hi, very weird bug here. Saving the output with nufmt ./a.nu | save -f a.nu results in an empty file, but nufmt ./a.nu | lines | str join "\n" | save -f ./a.nu works fine for some reason.
makes sense to me. this is how nushell handles raw streams of text. also, nufmt isn't anywhere near close to working, as you've probaby seen. we're looking for contributors to make it work right. feel free to jump in.
Hi, very weird bug here. Saving the output with
nufmt ./a.nu | save -f a.nu
results in an empty file, butnufmt ./a.nu | lines | str join "\n" | save -f ./a.nu
works fine for some reason.