Skip to content

Can't parse streams containing empty documents in 0.9.0 #1402

@wthrowe

Description

@wthrowe

The following program prints 2 (correctly, I believe) with version 0.8.0, but prints 0 with version 0.9.0:

#include <iostream>
#include <yaml.h>

int main() {
  const char* const docs = R"(                                                  
---                                                                             
---                                                                             
A                                                                               
)";

  const auto parsed = YAML::LoadAll(docs);
  std::cout << parsed.size() << "\n";
  return 0;
}

This appears to have been caused by #1319.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions