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
Describe the bug
❯ cat good.yaml test: "{\n a: () => {\n a.a(\"a\");\n a();\n },\n a: () => {\n }\n}" ❯ yq '.test style="literal"' good.yaml test: |- { a: () => { a.a("a"); a(); }, a: () => { } } ❯ cat bad.yaml test: "{\n a: () => {\n a.a(\"a\");\n a();\n },\n a: () => {\n \n }\n}" ❯ yq '.test style="literal"' bad.yaml test: "{\n a: () => {\n a.a(\"a\");\n a();\n },\n a: () => {\n \n }\n}"
bad.yaml differs from good.yaml only in the \n added before the last \n.
bad.yaml
good.yaml
\n
Version of yq: 4.43.1 Operating system: Linux Installed via: Homebrew
Input Yaml good.yml:
test: "{\n a: () => {\n a.a(\"a\");\n a();\n },\n a: () => {\n }\n}"
bad.yml:
test: "{\n a: () => {\n a.a(\"a\");\n a();\n },\n a: () => {\n \n }\n}"
Command
yq '.test style="literal"' {good,bad}.yaml
Actual behavior
test: |- { a: () => { a.a("a"); a(); }, a: () => { } } --- test: "{\n a: () => {\n a.a(\"a\");\n a();\n },\n a: () => {\n \n }\n}"
Expected behavior
test: |- { a: () => { a.a("a"); a(); }, a: () => { } } --- test: |- { a: () => { a.a("a"); a(); }, a: () => { } }
Additional context I ran both commands in verbose mode and compared the output. No important difference was found.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
bad.yaml
differs fromgood.yaml
only in the\n
added before the last\n
.Version of yq: 4.43.1
Operating system: Linux
Installed via: Homebrew
Input Yaml
good.yml:
bad.yml:
Command
Actual behavior
Expected behavior
Additional context
I ran both commands in verbose mode and compared the output. No important difference was found.
The text was updated successfully, but these errors were encountered: