Yaml File escape characters in multiline string - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Yaml File escape characters in multiline string (/thread-3261.html) |
Yaml File escape characters in multiline string - harun2525 - May-09-2017 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-1i 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/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines |