Python Forum

Full Version: Yaml File escape characters in multiline string
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want use \n character in multiline string but yaml don't allow me to use \n character how can i use \n character.

my code
    treeroot:
        branch1:
            name: >
                hello my friend\n how are you ?
                i am fine and you ?\n
                yes\nthanks
            branch1-1:
                name: Node 1-1
        branch2:
            name: Node 2
            branch2-1:
                name: Node 2-1
i know, we can use \n character in single lane mode but i want use it in multiline.

also, i want ask that what are the differences betwwen | and > characters ? i can never see differences between its

Thanks.

i solved.

http://stackoverflow.com/questions/37904...iple-lines