YAML Multi-Line Arrays

后端 未结 5 2061
闹比i
闹比i 2020-12-04 13:35

In YAML, you can easily create multi-line strings. However, I would like the ability to create a multi-line array (mainly for readibility within config files) using the

5条回答
  •  日久生厌
    2020-12-04 14:21

    Following Works for me and its good from readability point of view when array element values are small:

    key: [string1, string2, string3, string4, string5, string6]
    

    Note:snakeyaml implementation used

提交回复
热议问题