Fixed block map prepare value (where the colon goes)

This commit is contained in:
Jesse Beder
2012-05-22 12:59:07 -05:00
parent a626424baa
commit 5e0886db87

View File

@@ -372,6 +372,9 @@ namespace YAML
const unsigned nextIndent = curIndent + m_pState->CurGroupIndent();
const std::size_t childCount = m_pState->CurGroupChildCount();
if(child == EmitterNodeType::None)
return;
if(!m_pState->HasBegunNode()) {
if(childCount > 0) {
m_stream << "\n";
@@ -400,9 +403,11 @@ namespace YAML
const unsigned curIndent = m_pState->CurIndent();
const unsigned nextIndent = curIndent + m_pState->CurGroupIndent();
if(false /* was long key */) {
} else {
m_stream << ":";
if(!m_pState->HasBegunNode()) {
if(false /* was long key */) {
} else {
m_stream << ":";
}
}
switch(child) {