Fixed bool formatting

This commit is contained in:
Jesse Beder
2012-05-22 15:08:21 -05:00
parent faa2e50605
commit 2670ce8aaf

View File

@@ -615,7 +615,13 @@ namespace YAML
return *this;
PrepareNode(EmitterNodeType::Scalar);
m_stream << ComputeFullBoolName(b);
const char *name = ComputeFullBoolName(b);
if(m_pState->GetBoolLengthFormat() == ShortBool)
m_stream << name[0];
else
m_stream << name;
StartedScalar();
return *this;