mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fixed bug in anchors with no content. This involved refactoring the 'implicit sequence' concept (where a map and a sequence start on the same indent, but we read the sequence as more indented since the '-' is visually an indent).
This commit is contained in:
@@ -93,7 +93,6 @@ namespace YAML
|
||||
break;
|
||||
case TT_FLOW_SEQ_START:
|
||||
case TT_BLOCK_SEQ_START:
|
||||
case TT_BLOCK_ENTRY:
|
||||
m_pContent = new Sequence;
|
||||
break;
|
||||
case TT_FLOW_MAP_START:
|
||||
@@ -265,7 +264,7 @@ namespace YAML
|
||||
// write content
|
||||
if(node.m_pContent)
|
||||
node.m_pContent->Write(out);
|
||||
else
|
||||
else if(!node.m_alias)
|
||||
out << Null;
|
||||
|
||||
return out;
|
||||
|
Reference in New Issue
Block a user