Closed ErrrorMaxx closed 6 months ago
This is https://github.com/go-yaml/yaml/issues/1004.
This bug is in a dependency of chezmoi and cannot be fixed in chezmoi itself. chezmoi's dependencies are regularly updated and so when this is fixed in the dependency chezmoi will get the fix soon after. So, I will close this as won't fix.
Note, however, that if you have a template variable for newlines you should probably be using a template line ending directive instead, i.e. your templates should contain
chezmoi:template:line-endings=native
Describe the bug
chezmoi data -f yaml
incorrectly renders"\n"
as|4+
To reproduce
In
.chezmoi.yaml.tmpl
:Run
chezmoi data -f yaml
Expected behavior
"\n"
rendered as"\n"
(like"\t"
which properly renders as"\t"
)Output of command with the
--verbose
flagOutput of
chezmoi doctor