Skip to content

Multiline strings (or block scalars) are not preserved when they have trailing white space. #566

@bryant-ferguson

Description

@bryant-ferguson

Describe the bug
Multiline strings (or block scalars) are not preserved when they have trailing white space. They are converted to quoted strings.

version of yq: 3.3.4
operating system: Linux Mint 19

Input Yaml

this: |
  should 
  really work

Command
The command you ran:

yq merge data.yml

Actual behavior

this: "should \nreally work\n"

Expected behavior

this: |
  should 
  really work

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions