From 0abbf650b57b031b51948f788890ea1a1e3366e2 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Tue, 22 May 2012 17:50:10 -0500 Subject: [PATCH] Fixed char output --- src/emitter.cpp | 2 +- util/sandbox.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/emitter.cpp b/src/emitter.cpp index c89ed65..5e43938 100644 --- a/src/emitter.cpp +++ b/src/emitter.cpp @@ -813,7 +813,7 @@ namespace YAML return *this; PrepareNode(EmitterNodeType::Scalar); - m_stream << ch; + Utils::WriteChar(m_stream, ch); StartedScalar(); return *this; diff --git a/util/sandbox.cpp b/util/sandbox.cpp index 854e26d..be24ae1 100644 --- a/util/sandbox.cpp +++ b/util/sandbox.cpp @@ -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;