HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b103f95
)
fix printing strings
author
AnotherTest
<ali.mpfard@gmail.com>
Fri, 10 Jan 2020 01:12:39 +0000
(
04:42
+0330)
committer
AnotherTest
<ali.mpfard@gmail.com>
Fri, 10 Jan 2020 01:12:39 +0000
(
04:42
+0330)
jq/printer.jq
patch
|
blob
|
blame
|
history
diff --git
a/jq/printer.jq
b/jq/printer.jq
index
88f6cad
..
c4ce3d9
100644
(file)
--- a/
jq/printer.jq
+++ b/
jq/printer.jq
@@
-8,7
+8,7
@@
def _reconstruct_hash:
def pr_str(opt):
(select(.kind == "symbol") | .value) //
- (select(.kind == "string") | .value | if opt.readable then tojson
else .
end) //
+ (select(.kind == "string") | .value | if opt.readable then tojson
|tojson else tojson
end) //
(select(.kind == "keyword") | ":\(.value)") //
(select(.kind == "number") | .value | tostring) //
(select(.kind == "list") | .value | map(pr_str(opt)) | join(" ") | "(\(.))") //