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
5a2a317d
"src/include/amd_inline_asm.hpp" did not exist on "05d7a0875c8e4cd12aed8e63100591ed07328d6a"
Commit
5a2a317d
authored
Nov 20, 2008
by
Jesse Beder
Browse files
Fixed tag output bug
parent
f8d81fff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/node.cpp
src/node.cpp
+5
-1
yaml-reader/tests/directives.yaml
yaml-reader/tests/directives.yaml
+1
-1
No files found.
src/node.cpp
View file @
5a2a317d
...
@@ -136,7 +136,11 @@ namespace YAML
...
@@ -136,7 +136,11 @@ namespace YAML
// write tag
// write tag
if
(
m_tag
!=
""
)
{
if
(
m_tag
!=
""
)
{
out
<<
std
::
string
(
"!<"
)
<<
m_tag
<<
std
::
string
(
"> "
);
// put the tag in the "proper" brackets
if
(
m_tag
.
substr
(
0
,
2
)
==
"!<"
&&
m_tag
.
substr
(
m_tag
.
size
()
-
1
)
==
">"
)
out
<<
m_tag
;
else
out
<<
std
::
string
(
"!<"
)
<<
m_tag
<<
std
::
string
(
"> "
);
startedLine
=
true
;
startedLine
=
true
;
onlyOneCharOnLine
=
false
;
onlyOneCharOnLine
=
false
;
}
}
...
...
yaml-reader/tests/directives.yaml
View file @
5a2a317d
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
%TAG
!
!
howdy
%TAG
!
!
howdy
---
---
-
basic node
-
basic node
-
!
yeah baby
-
!
yeah baby
\ No newline at end of file
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