-
I am trying to add a bitwarden notes field to a template and use the line endings directive so that the target file has native line endings (i.e. crlf on Windows). My chezmoi:template:line-endings=native
{{- (bitwarden "item" "my.note").notes -}} I've also tried {{- chezmoi:template:line-endings=native -}}
{{- (bitwarden "item" "my.note").notes -}} However, on Windows, the Am I doing something wrong or could this be a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This might be a bug, and it doesn't look like something that can be tested with |
Beta Was this translation helpful? Give feedback.
-
Here is a short example template ( (I deleted
I think it's reasonable to expect the destination file to have the line endings specified in the directive. I'm not sure at the moment if this was never the case or it's a regression, as I haven't looked into line endings in a while. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting this, this is actually a bug. The documentation states that the directive is #3818 fixes this. In the short term, you can use
in your template. |
Beta Was this translation helpful? Give feedback.
Thanks for reporting this, this is actually a bug.
The documentation states that the directive is
chezmoi:template:line-endings=native
but the code is actually looking forchezmoi:template:line-ending=native
(singularending
, not pluralendings
).#3818 fixes this. In the short term, you can use
in your template.