aaubry/YamlDotNet

Add new line between items

sunnamed434 opened this issue · 0 comments

Looking for a way of adding new line per every new line

var yamlSerializer = new SerializerBuilder()
.AddNewLinePerEveryNewItem() // smth like this or similar API
.Build()

Before:

first1:
  hello: true
  world: true
there:
  a: true
  b: true
  c: true
first2:
  a: false

After:

first1:
  hello: true
  world: true

there:
  a: true
  b: true
  c: true

first2:
  a: false