YAML C# Add new line between items

97 Views Asked by At

I'm looking for a way of adding new line per every new line (as I show below: "before" and "after")

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
0

There are 0 best solutions below