Fixed bool formatting
This commit is contained in:
parent
faa2e50605
commit
2670ce8aaf
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user