mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:48:27 +08:00
Fixed newline handling in encoder/decoder
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
Encode operators will take the piped in object structure and encode it as a string in the desired format. The decode operators do the opposite, they take a formatted string and decode it into the relevant object structure.
|
||||
|
||||
These operators are useful to process yaml documents that have stringified embeded yaml/json/props in them.
|
||||
## Encode value as yaml string
|
||||
Given a sample.yml file of:
|
||||
```yaml
|
||||
@@ -98,6 +99,7 @@ Given a sample.yml file of:
|
||||
a: |
|
||||
foo: bar
|
||||
baz: dog
|
||||
|
||||
```
|
||||
then
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user