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
c3798d9b
Commit
c3798d9b
authored
Sep 13, 2011
by
Jesse Beder
Browse files
Added tags to Node emitter output
parent
40c47f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/node/nodeevents.cpp
src/node/nodeevents.cpp
+3
-3
No files found.
src/node/nodeevents.cpp
View file @
c3798d9b
...
...
@@ -72,16 +72,16 @@ namespace YAML
handler
.
OnNull
(
Mark
(),
anchor
);
break
;
case
NodeType
::
Scalar
:
handler
.
OnScalar
(
Mark
(),
""
,
anchor
,
node
.
scalar
());
handler
.
OnScalar
(
Mark
(),
node
.
tag
()
,
anchor
,
node
.
scalar
());
break
;
case
NodeType
::
Sequence
:
handler
.
OnSequenceStart
(
Mark
(),
""
,
anchor
);
handler
.
OnSequenceStart
(
Mark
(),
node
.
tag
()
,
anchor
);
for
(
detail
::
const_node_iterator
it
=
node
.
begin
();
it
!=
node
.
end
();
++
it
)
Emit
(
**
it
,
handler
,
am
);
handler
.
OnSequenceEnd
();
break
;
case
NodeType
::
Map
:
handler
.
OnMapStart
(
Mark
(),
""
,
anchor
);
handler
.
OnMapStart
(
Mark
(),
node
.
tag
()
,
anchor
);
for
(
detail
::
const_node_iterator
it
=
node
.
begin
();
it
!=
node
.
end
();
++
it
)
{
Emit
(
*
it
->
first
,
handler
,
am
);
Emit
(
*
it
->
second
,
handler
,
am
);
...
...
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