且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 YAML 中保留新行

更新时间:2023-12-06 16:50:34

对于多行标量,您可以使用块.字符 | 表示块的开始.使用:

For multi-line scalars, you can use blocks. The character | denotes the start of a block. Use:

Data: |
      Some data, here and a special character like ':'
      Another line of data on a separate line