我不知道如何使用多行字符串作为 yaml 序列的一部分:
foo:
- bar
- bar2
- > super duper long
string that I would like
to have on multiple lines
- Another item
是否可以?
如果您想使用折叠标量:
foo:
- bar
- bar2
- >
super duper long
string that I would like
to have on multiple lines
- Another item
请注意,折叠标量标题行(带有>
).
或者,您可以只使用普通标量:
foo:
- bar
- bar2
- super duper long
string that I would like
to have on multiple lines
- Another item
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)