FeatureReq: assign `YAML::Emitter` to `YAML::Node` (multiline string to yaml-cpp node)

Open
#1,237 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, yaml
Domain
backend

Research direction

Start by reading the YAML::Emitter and YAML::Node APIs and the linked Stack Overflow discussion to understand how emitted multiline strings can be assigned to a node. Identify the relevant assignment and emitter tests, then define expected behavior for assigning an emitter to a node. Done means the requested assignment compiles and preserves the multiline string in the node's YAML output.

Written by the indexing model from the issue text.

Description

feature help wanted

I'd like to be able to:

  YAML::Emitter out;
  out << YAML::Literal << val;            
  yamlContent[key] = out

See also:
https://stackoverflow.com/questions/22231418/adding-multiline-string-to-a-yaml-cpp-node

Dominant language
C++
Stars
6.1k
Forks
2.2k
Avg merge
22h 2m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jbeder/yaml-cpp

All issues in jbeder/yaml-cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.