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
5e0886db
Commit
5e0886db
authored
May 22, 2012
by
Jesse Beder
Browse files
Fixed block map prepare value (where the colon goes)
parent
a626424b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/emitter.cpp
src/emitter.cpp
+8
-3
No files found.
src/emitter.cpp
View file @
5e0886db
...
@@ -371,6 +371,9 @@ namespace YAML
...
@@ -371,6 +371,9 @@ namespace YAML
const
unsigned
curIndent
=
m_pState
->
CurIndent
();
const
unsigned
curIndent
=
m_pState
->
CurIndent
();
const
unsigned
nextIndent
=
curIndent
+
m_pState
->
CurGroupIndent
();
const
unsigned
nextIndent
=
curIndent
+
m_pState
->
CurGroupIndent
();
const
std
::
size_t
childCount
=
m_pState
->
CurGroupChildCount
();
const
std
::
size_t
childCount
=
m_pState
->
CurGroupChildCount
();
if
(
child
==
EmitterNodeType
::
None
)
return
;
if
(
!
m_pState
->
HasBegunNode
())
{
if
(
!
m_pState
->
HasBegunNode
())
{
if
(
childCount
>
0
)
{
if
(
childCount
>
0
)
{
...
@@ -400,9 +403,11 @@ namespace YAML
...
@@ -400,9 +403,11 @@ namespace YAML
const
unsigned
curIndent
=
m_pState
->
CurIndent
();
const
unsigned
curIndent
=
m_pState
->
CurIndent
();
const
unsigned
nextIndent
=
curIndent
+
m_pState
->
CurGroupIndent
();
const
unsigned
nextIndent
=
curIndent
+
m_pState
->
CurGroupIndent
();
if
(
false
/* was long key */
)
{
if
(
!
m_pState
->
HasBegunNode
())
{
}
else
{
if
(
false
/* was long key */
)
{
m_stream
<<
":"
;
}
else
{
m_stream
<<
":"
;
}
}
}
switch
(
child
)
{
switch
(
child
)
{
...
...
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