Better way of processing leading content

This commit is contained in:
Mike Farah
2021-07-20 10:19:55 +10:00
parent bbebebe30c
commit 4e628327c4
9 changed files with 92 additions and 62 deletions
+1 -4
View File
@@ -248,8 +248,7 @@ a: test
b: sane
EOM
X=$(./yq e --header-preprocess=false '... comments=""' test.yml)
X=$(./yq e '... comments=""' test.yml)
assertEquals "$expected" "$X"
}
@@ -265,9 +264,7 @@ a: test
b: sane
EOL
# it will be hard to remove that top level separator
read -r -d '' expected << EOM
---
# hi peeps
# cool
a: test