Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
5a2a317d
Commit
5a2a317d
authored
Nov 20, 2008
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tag output bug
parent
f8d81fff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/node.cpp
+5
-1
yaml-reader/tests/directives.yaml
+1
-2
No files found.
src/node.cpp
View file @
5a2a317d
...
...
@@ -136,7 +136,11 @@ namespace YAML
// write 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
;
onlyOneCharOnLine
=
false
;
}
...
...
yaml-reader/tests/directives.yaml
View file @
5a2a317d
...
...
@@ -2,4 +2,4 @@
%TAG
!
!
howdy
---
-
basic node
-
!
yeah baby
\ No newline at end of file
-
!
yeah baby
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