Added block seq indentation

This commit is contained in:
Jesse Beder
2012-05-21 21:04:10 -05:00
parent d86cfc1c63
commit b5d8241dfa
4 changed files with 18 additions and 2 deletions

View File

@@ -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()