mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2026-01-02 12:07:55 +08:00
Fixed basic block seq indentation
This commit is contained in:
@@ -313,12 +313,14 @@ namespace YAML
|
||||
void Emitter::BlockSeqPrepareNode()
|
||||
{
|
||||
const unsigned curIndent = m_pState->CurIndent();
|
||||
if(m_stream.col() > curIndent) {
|
||||
m_stream << "\n";
|
||||
if(!m_pState->HasTag() && !m_pState->HasAnchor()) {
|
||||
if(m_pState->CurGroupChildCount() > 0) {
|
||||
m_stream << "\n";
|
||||
}
|
||||
m_stream << IndentTo(curIndent);
|
||||
m_stream << "-";
|
||||
m_stream << IndentTo(curIndent + m_pState->CurGroupIndent());
|
||||
}
|
||||
m_stream << IndentTo(curIndent);
|
||||
m_stream << "-";
|
||||
m_stream << IndentTo(curIndent + m_pState->CurGroupIndent());
|
||||
}
|
||||
|
||||
void Emitter::FlowMapPrepareNode()
|
||||
|
||||
Reference in New Issue
Block a user