You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
Hello! Can hclencoder encode multiline strings? If not, can I submit a PR that will not quote strings that are prefixed with <<? I believe that allow multiline strings to be encoded properly as long as the user has submitted a string in heredoc format.
The text was updated successfully, but these errors were encountered:
Howdy! I'm not sure if we have any tests for multiline strings, but if it's not encoding them properly (or if it's slapping \n everywhere), it's probably best to support the heredoc format. I don't think we should treat strings beginning with << as special though.
If you want to take a stab at this, I'd recommend detecting if a string contains \n before encoding, if it does, output in a heredoc format instead, with some default sentinel (perhaps EOF) which can be overridden with an hcle struct tag. Thoughts?
Hello! Can hclencoder encode multiline strings? If not, can I submit a PR that will not quote strings that are prefixed with
<<
? I believe that allow multiline strings to be encoded properly as long as the user has submitted a string in heredoc format.The text was updated successfully, but these errors were encountered: