Original file
controls:
- id: AC-1
levels:
- high
- moderate
- low
- id: AC-2
When i add a new field to mapping, it looks like this, rules is the new added field.It adds a new extra new line.
controls:
- id: AC-1
levels:
- high
- moderate
- low
rules: []
- id: AC-2
But i want this, is this possible.
controls:
- id: AC-1
levels:
- high
- moderate
- low
rules: []
- id: AC-2
I saw there is a similar question Modifying YAML using ruamel.yaml adds extra new lines, but i believe this is very old.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744217872a4563638.html
评论列表(0条)