Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
0abbf650
Commit
0abbf650
authored
May 22, 2012
by
Jesse Beder
Browse files
Fixed char output
parent
c664d50d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/emitter.cpp
src/emitter.cpp
+1
-1
util/sandbox.cpp
util/sandbox.cpp
+3
-1
No files found.
src/emitter.cpp
View file @
0abbf650
...
@@ -813,7 +813,7 @@ namespace YAML
...
@@ -813,7 +813,7 @@ namespace YAML
return
*
this
;
return
*
this
;
PrepareNode
(
EmitterNodeType
::
Scalar
);
PrepareNode
(
EmitterNodeType
::
Scalar
);
m_stream
<<
ch
;
Utils
::
WriteChar
(
m_stream
,
ch
)
;
StartedScalar
();
StartedScalar
();
return
*
this
;
return
*
this
;
...
...
util/sandbox.cpp
View file @
0abbf650
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
int
main
()
int
main
()
{
{
YAML
::
Emitter
out
;
YAML
::
Emitter
out
;
out
<<
YAML
::
DoubleQuoted
<<
"Hello, World!
\n
"
;
out
<<
YAML
::
BeginSeq
;
out
<<
':'
;
out
<<
YAML
::
EndSeq
;
std
::
cout
<<
out
.
c_str
()
<<
"
\n
"
;
std
::
cout
<<
out
.
c_str
()
<<
"
\n
"
;
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment