Skip to content

Commit

Permalink
Fixed char output
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeder committed May 22, 2012
1 parent c664d50 commit 0abbf65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/emitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ namespace YAML
return *this;

PrepareNode(EmitterNodeType::Scalar);
m_stream << ch;
Utils::WriteChar(m_stream, ch);
StartedScalar();

return *this;
Expand Down
4 changes: 3 additions & 1 deletion util/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0abbf65

Please sign in to comment.