No way to modify a single `Node` to emit with `SingleQuoted`?

オープン
#1,114 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, yaml
領域
backend

調査の方向性

The report concerns preserving or setting single-quoted style on an individual YAML::Node while editing and emitting a document. Start by reading the YAML::Node and emitter APIs and the existing tests for scalar quoting; check whether the issue's desired behavior is supported at either entry point. Done means a single value can retain or emit single-quoted style without forcing that style on the whole document.

索引モデルが issue の本文から書いたものです。

説明

feature help wanted

I've been beating my head into the wall to get this library to allow me to set a single YAML::Value to YAML::SingleQuoted. This is a pretty straightforward problem that I think most people can guess at: I'm editing a docker-compose.yml file and I'm losing every quote literal.

I know I can use YAML::Emitter and << into it with YAML::SingleQuoted to emit the entire document, but keys and values single quoted, but that isn't what I need. I realize quotes aren't the standard here in YAML format. But is there any way to read and preserve them?

主要言語
C++
スター
6.1k
フォーク
2.2k
平均マージ
22時間 2分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jbeder/yaml-cpp のほかの issue

jbeder/yaml-cpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。