Skip to content

YAML doesn't Dump literal string why ? #11688

@shivapoudel

Description

@shivapoudel

Whenever I perform Yaml::dump($data, 50) I receive the following yaml file:

Data Configuration:

[...]
        post_up_message: |
            Congratulations! Your machine is up and running.
                - Navigate to http://vagrantlab.dev for your Default Site.
                - Navigate to http://wordpress.dev for your WordPress Site.

Output Yaml file data:

        post_up_message: "Congratulations! Your machine is up and running.\r\n    - Navigate to http://vagrantlab.dev for your Default Site.\r\n    - Navigate to http://wordpress.dev for your WordPress Site.\r\n"

I want similar source after dumping also.

Please anyone help me I am stuck with Literal string in Symfony2 YAML dump.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions