我无法弄清楚如何使用多行字符串作为yaml序列的一部分:
foo:
- bar
- bar2
- > super duper long
string that I would like
to have on multiple lines
- Another item
Run Code Online (Sandbox Code Playgroud)
可能吗?
fly*_*lyx 26
如果你想使用折叠标量:
foo:
- bar
- bar2
- >
super duper long
string that I would like
to have on multiple lines
- Another item
Run Code Online (Sandbox Code Playgroud)
请注意,折叠标量的标题(与该行的行>)可能没有内容.
或者,您可以使用普通标量:
foo:
- bar
- bar2
- super duper long
string that I would like
to have on multiple lines
- Another item
Run Code Online (Sandbox Code Playgroud)