Fixed char output

This commit is contained in:
Jesse Beder
2012-05-22 17:50:10 -05:00
parent c664d50d5c
commit 0abbf650b5
2 changed files with 4 additions and 2 deletions

View File

@@ -813,7 +813,7 @@ namespace YAML
return *this;
PrepareNode(EmitterNodeType::Scalar);
m_stream << ch;
Utils::WriteChar(m_stream, ch);
StartedScalar();
return *this;

View File

@@ -4,7 +4,9 @@
int main()
{
YAML::Emitter out;
out << YAML::DoubleQuoted << "Hello, World!\n";
out << YAML::BeginSeq;
out << ':';
out << YAML::EndSeq;
std::cout << out.c_str() << "\n";
return 0;