Fixed bool formatting

This commit is contained in:
beder 2012-05-22 15:08:21 -05:00
parent ef4e2986f2
commit 52d33046ab

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;