Added comments, not entirely correct

This commit is contained in:
Jesse Beder
2012-05-22 12:29:36 -05:00
parent 0f3f1e26a7
commit 0814813302
5 changed files with 18 additions and 4 deletions

View File

@@ -589,7 +589,13 @@ namespace YAML
if(!good())
return *this;
m_pState->StartedScalar();
PrepareNode(EmitterNodeType::None);
if(m_stream.col() > 0)
m_stream << Indentation(m_pState->GetPreCommentIndent());
Utils::WriteComment(m_stream, comment.content, m_pState->GetPostCommentIndent());
m_pState->SetNonContent();
return *this;
}