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
ad2b9fba
Commit
ad2b9fba
authored
Nov 20, 2008
by
jbeder
Browse files
Fixed tag output bug
parent
4b45a718
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/node.cpp
src/node.cpp
+5
-1
No files found.
src/node.cpp
View file @
ad2b9fba
...
...
@@ -136,6 +136,10 @@ namespace YAML
// write tag
if
(
m_tag
!=
""
)
{
// 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
;
onlyOneCharOnLine
=
false
;
...
...
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