mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Fixed bool formatting
This commit is contained in:
@@ -615,7 +615,13 @@ namespace YAML
|
|||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
PrepareNode(EmitterNodeType::Scalar);
|
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();
|
StartedScalar();
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
|
Reference in New Issue
Block a user