mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-04 08:24:57 +08:00
Fixed CSV line break issue #1974
This commit is contained in:
@@ -172,6 +172,13 @@ var csvScenarios = []formatScenario{
|
||||
expected: expectedYamlFromCSVWithObject,
|
||||
scenarioType: "decode-csv",
|
||||
},
|
||||
{
|
||||
description: "Decode CSV line breaks",
|
||||
skipDoc: true,
|
||||
input: "heading1\n\"some data\nwith a line break\"\n",
|
||||
expected: "- heading1: |-\n some data\n with a line break\n",
|
||||
scenarioType: "decode-csv",
|
||||
},
|
||||
{
|
||||
description: "Parse CSV into an array of objects, no auto-parsing",
|
||||
subdescription: "First row is assumed to be the header row. Entries with YAML/JSON will be left as strings.",
|
||||
|
||||
Reference in New Issue
Block a user