[英]Multi-line string as part of sequence
我無法弄清楚如何使用多行字符串作為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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.