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
b9d4ccd2
Commit
b9d4ccd2
authored
Mar 03, 2011
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the default --- at the start of all emitter output
parent
d6aeb164
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/emitter.cpp
+5
-5
test/emittertests.cpp
+0
-0
No files found.
src/emitter.cpp
View file @
b9d4ccd2
...
...
@@ -152,8 +152,6 @@ namespace YAML
switch
(
curState
)
{
// document-level
case
ES_WAITING_FOR_DOC
:
m_stream
<<
"---"
;
m_pState
->
RequireSoftSeparation
();
m_pState
->
SwitchState
(
ES_WRITING_DOC
);
return
true
;
case
ES_WRITING_DOC
:
...
...
@@ -340,8 +338,10 @@ namespace YAML
curState
==
ES_WRITING_BLOCK_MAP_KEY
||
curState
==
ES_WRITING_BLOCK_MAP_VALUE
||
curState
==
ES_WRITING_DOC
)
{
m_stream
<<
"
\n
"
;
m_pState
->
UnsetSeparation
();
if
(
m_pState
->
RequiresHardSeparation
()
||
curState
!=
ES_WRITING_DOC
)
{
m_stream
<<
"
\n
"
;
m_pState
->
UnsetSeparation
();
}
}
m_pState
->
PushState
(
ES_WAITING_FOR_BLOCK_SEQ_ENTRY
);
}
else
if
(
flowType
==
Flow
)
{
...
...
@@ -408,7 +408,7 @@ namespace YAML
curState
==
ES_WRITING_BLOCK_MAP_KEY
||
curState
==
ES_WRITING_BLOCK_MAP_VALUE
||
curState
==
ES_WRITING_DOC
)
{
if
(
m_pState
->
RequiresHardSeparation
()
||
curState
!=
ES_WRITING_BLOCK_SEQ_ENTRY
)
{
if
(
m_pState
->
RequiresHardSeparation
()
||
(
curState
!=
ES_WRITING_DOC
&&
curState
!=
ES_WRITING_BLOCK_SEQ_ENTRY
)
)
{
m_stream
<<
"
\n
"
;
m_pState
->
UnsetSeparation
();
}
...
...
test/emittertests.cpp
View file @
b9d4ccd2
This diff is collapsed.
Click to expand it.
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