Closed matteo-rossi-wise closed 2 years ago
Take a look at https://github.com/rubyconfig/config/issues/304#issuecomment-888489198
I think that was a very similar situation as your own.
Thanks @cjlarose, I've decided to access the specific ENV variable directly instead of enabling global config use_env
since I needed to access only one multiline string.
We can close this issues, thanks for the support 😃
👋🏻 Hi all, I'm facing an issue when I try to add a multiline string (OPENSSH Key) from an ENV variable. I'd expect my
Settings.my_key
to preserve newlines but they are removed instead, as follows:Example 1: string w/ newline and w/o quotes
Example 2: string w/ newline and w/ quotes
Is there any built-in support for this scenario? Thanks 🙏🏻