mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fixed bug with explicit doc start introduced in last commit
This commit is contained in:
@@ -294,7 +294,7 @@ namespace YAML
|
||||
}
|
||||
|
||||
// PopAllIndents
|
||||
// . Pops all indentations off the stack,
|
||||
// . Pops all indentations (except for the base empty one) off the stack,
|
||||
// and enqueues the proper token each time.
|
||||
void Scanner::PopAllIndents()
|
||||
{
|
||||
@@ -303,8 +303,13 @@ namespace YAML
|
||||
return;
|
||||
|
||||
// now pop away
|
||||
while(!m_indents.empty())
|
||||
while(!m_indents.empty()) {
|
||||
const IndentMarker& indent = m_indents.top();
|
||||
if(indent.type == IndentMarker::NONE)
|
||||
break;
|
||||
|
||||
PopIndent();
|
||||
}
|
||||
}
|
||||
|
||||
// PopIndent
|
||||
|
Reference in New Issue
Block a user