mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fixed block map prepare value (where the colon goes)
This commit is contained in:
@@ -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
|
|||||||
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) {
|
||||||
|
Reference in New Issue
Block a user