Added newlines, fixed map/map

This commit is contained in:
Jesse Beder
2012-05-21 23:29:59 -05:00
parent b0dd0f862a
commit d3801b7482
4 changed files with 19 additions and 4 deletions

View File

@@ -249,11 +249,15 @@ namespace YAML
{
if(!good())
return;
PrepareNode(m_pState->NextGroupType(GroupType::None));
m_stream << "\n";
m_pState->SetNonContent();
}
bool Emitter::CanEmitNewline() const
{
return false;
return true;
}
// Put the stream in a state so we can simply write the next node