Example #1
0
 private void EndTransition(Emitter emitter, YAMLNode next)
 {
     if (Style == MappingStyle.Block)
     {
         emitter.WriteLine();
     }
     else if (Style == MappingStyle.Flow)
     {
         emitter.WriteSeparator().WriteWhitespace();
     }
     if (next.IsIndent)
     {
         emitter.DecreaseIntent();
     }
 }
Example #2
0
 private void EndChild(Emitter emitter, YAMLNode next)
 {
     if (Style.IsAnyBlock())
     {
         emitter.WriteLine();
         if (next.NodeType == NodeType)
         {
             emitter.DecreaseIntent();
         }
     }
     else if (Style == SequenceStyle.Flow)
     {
         emitter.WriteSeparator().WriteWhitespace();
     }
     if (next.IsIndent)
     {
         emitter.DecreaseIntent();
     }
 }