mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Added block seq indentation
This commit is contained in:
@@ -312,6 +312,13 @@ namespace YAML
|
||||
|
||||
void Emitter::BlockSeqPrepareNode()
|
||||
{
|
||||
const unsigned curIndent = m_pState->CurIndent();
|
||||
if(m_stream.col() > curIndent) {
|
||||
m_stream << "\n";
|
||||
}
|
||||
m_stream << IndentTo(curIndent);
|
||||
m_stream << "-";
|
||||
m_stream << IndentTo(curIndent + m_pState->CurGroupIndent());
|
||||
}
|
||||
|
||||
void Emitter::FlowMapPrepareNode()
|
||||
|
Reference in New Issue
Block a user