yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

YAML::Literal when new line at the end, shoud be `|+` and not `|`

Open shemeshg opened this issue 1 year ago • 0 comments

it is ok for

YAML::Emitter out;
out << YAML::Literal << "A\n B\n  C";

to produce

|
A
 B
  C

But

YAML::Emitter out;
out << YAML::Literal << "A\n B\n  C\n";

should have produced

|+
A
 B
  C

shemeshg avatar Oct 20 '23 03:10 shemeshg