From cc559956a07f5388006310e2285767486a2ff978 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Tue, 22 May 2012 13:53:03 -0500 Subject: [PATCH] Added bool, char, binary --- src/emitter.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/emitter.cpp b/src/emitter.cpp index 6b6e139..6e49e54 100644 --- a/src/emitter.cpp +++ b/src/emitter.cpp @@ -369,7 +369,6 @@ namespace YAML void Emitter::BlockMapPrepareKey(EmitterNodeType::value child) { const unsigned curIndent = m_pState->CurIndent(); - const unsigned nextIndent = curIndent + m_pState->CurGroupIndent(); const std::size_t childCount = m_pState->CurGroupChildCount(); if(child == EmitterNodeType::None) @@ -520,6 +519,8 @@ namespace YAML if(!good()) return *this; + PrepareNode(EmitterNodeType::Scalar); + m_stream << ComputeFullBoolName(b); m_pState->StartedScalar(); return *this; @@ -530,6 +531,8 @@ namespace YAML if(!good()) return *this; + PrepareNode(EmitterNodeType::Scalar); + m_stream << ch; m_pState->StartedScalar(); return *this; @@ -635,6 +638,7 @@ namespace YAML if(!good()) return *this; + // TODO m_pState->StartedScalar(); return *this; @@ -647,6 +651,8 @@ namespace YAML if(!good()) return *this; + PrepareNode(EmitterNodeType::Scalar); + Utils::WriteBinary(m_stream, binary); m_pState->StartedScalar(); return *this;