We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The stdlib documentation for manifestJson, manifestJsonMinified, and manifestJsonEx use the same formatting logic as other functions with examples,
manifestJson
manifestJsonMinified
manifestJsonEx
jsonnet/doc/_stdlib_gen/stdlib.jsonnet
Line 16 in 5a4e8e3
Line 9 in 5a4e8e3
Specifically for these functions, this seriously obfuscates the results, e.g.
jsonnet/doc/_stdlib_gen/stdlib-content.jsonnet
Lines 774 to 799 in 5a4e8e3
renders as
Example: std.manifestJsonEx( { x: [1, 2, 3, true, false, null, "string\nstring"], y: { a: 1, b: 2, c: [1, 2] }, }, " ") yields "{\n \"x\": [\n 1,\n 2,\n 3,\n true,\n false,\n null,\n \"string\\nstring\"\n ],\n \"y\": {\n \"a\": 1,\n \"b\": 2,\n \"c\": [\n 1,\n 2\n ]\n }\n}".
std.manifestJsonEx( { x: [1, 2, 3, true, false, null, "string\nstring"], y: { a: 1, b: 2, c: [1, 2] }, }, " ")
"{\n \"x\": [\n 1,\n 2,\n 3,\n true,\n false,\n null,\n \"string\\nstring\"\n ],\n \"y\": {\n \"a\": 1,\n \"b\": 2,\n \"c\": [\n 1,\n 2\n ]\n }\n}"
It should really not be stripping the repeaded whitespaces from the example input, and it should be rendering the output as
{ "x": [ 1, 2, 3, true, false, null, "string\nstring" ], "y": { "a": 1, "b": 2, "c": [ 1, 2 ] } }
more similarly to the documentation for the other manifest* functions, e.g.
manifest*
Lines 900 to 929 in 5a4e8e3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The stdlib documentation for
manifestJson
,manifestJsonMinified
, andmanifestJsonEx
use the same formatting logic as other functions with examples,jsonnet/doc/_stdlib_gen/stdlib.jsonnet
Line 16 in 5a4e8e3
which passes the result through
jsonnet/doc/_stdlib_gen/stdlib.jsonnet
Line 9 in 5a4e8e3
Specifically for these functions, this seriously obfuscates the results, e.g.
jsonnet/doc/_stdlib_gen/stdlib-content.jsonnet
Lines 774 to 799 in 5a4e8e3
renders as
It should really not be stripping the repeaded whitespaces from the example input, and it should be rendering the output as
more similarly to the documentation for the other
manifest*
functions, e.g.jsonnet/doc/_stdlib_gen/stdlib-content.jsonnet
Lines 900 to 929 in 5a4e8e3
The text was updated successfully, but these errors were encountered: