mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 02:03:24 +08:00
Fixed CSV line break issue #1974
This commit is contained in:
@@ -95,6 +95,11 @@ func parseSnippet(value string) (*CandidateNode, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if result.Tag == "!!str" {
|
||||
// use the original string value, as
|
||||
// decoding drops new lines
|
||||
return createScalarNode(value, value), nil
|
||||
}
|
||||
result.Line = 0
|
||||
result.Column = 0
|
||||
return result, err
|
||||
|
||||
Reference in New Issue
Block a user