I am working with YAML files and I am stuck in using the "|" for literal quotes.
I am using PyYAML.
Major issue here is that it works for the first level "Dictionary" Key in the below code but for the second level "notes" key it did not work.
I have tried using ">" "|+" "|-" but nothing worked.
Description: |
This is a sample text showing that it works fine here.
Signatures:
- {
returnValue: 'placeholder',
notes: |
Its not working here
}
- {
returnValue: 'another placeholder',
notes: '
This is working here
'
}
I checked the syntax on http://yaml-online-parser.appspot.com/ , https://nodeca.github.io/js-yaml/ and others as well, I got the error that
ERROR: while scanning for the next token found character '|' that cannot start any token in "", line 8, column 24: notes: |
I went through the thread In YAML, how do I break a string over multiple lines? and few others, but nothing worked.