Fix YAML::Newline in a sequence or map.

Inside of a sequence or map, `YAML::Newline` wouldn't reset the collection state, which would cause behavior like this:

```
nodeA:   
    k: [{i: 0},
 {i:1},
  ]NodeB:
    k: [{i: 0},
 {i:1},
  ]
```
This commit is contained in:
Raffaello Bertini
2020-07-02 04:31:51 +01:00
committed by GitHub
parent 3f381f13a0
commit 1c2e767347
2 changed files with 221 additions and 0 deletions

View File

@@ -179,6 +179,9 @@ void EmitterState::EndedGroup(GroupType::value type) {
m_globalModifiedSettings.restore();
ClearModifiedSettings();
m_hasAnchor = false;
m_hasTag = false;
m_hasNonContent = false;
}
EmitterNodeType::value EmitterState::CurGroupNodeType() const {