jqfmt icon indicating copy to clipboard operation
jqfmt copied to clipboard

Full command leaves trailing whitespace

Open isaacsanders opened this issue 4 months ago • 0 comments

Input

map(select(has("resource")) | .resource.github_repository | to_entries | map(.value | map(.name))) | flatten[]

Command

jqfmt -ar -ob -op pipe,comma,add,sub,mul,div,mod,eq,ne,gt,lt,ge,le,and,or,alt,assign,modify,updateAdd,updateSub,updateMul,updateDiv,updateMod,updateAlt

Output

map(select(has("resource")) | 
.resource.github_repository | 
to_entries | 
map(.value | 
map(.name))) | 
    flatten[]

Expected output

map(select(has("resource")) |
.resource.github_repository |
to_entries |
map(.value |
map(.name))) |
    flatten[]

Version: https://github.com/NixOS/nixpkgs/blob/f0bf50c97687c333d48c11ee0b5cdc952d57b8cb/pkgs/by-name/jq/jqfmt/package.nix

isaacsanders avatar Aug 22 '25 14:08 isaacsanders