YamlDotNet icon indicating copy to clipboard operation
YamlDotNet copied to clipboard

Empty line in comments

Open imclint21 opened this issue 1 year ago • 1 comments
trafficstars

Hi,

I try to generate an empty line using ChainedObjectGraphVisitor, but does not works, any idea how to accomplish this?

I also tried to use [YamlMember(Description = "\nGeneral configuration")] but don't work either.

public override bool EnterMapping(IPropertyDescriptor key, IObjectDescriptor value, IEmitter context)
{
	context.Emit(new Scalar(""));
	context.Emit(new Comment("Comment", false));
	return base.EnterMapping(key, value, context);
}

Regards

imclint21 avatar May 26 '24 13:05 imclint21