Is your feature request related to a problem? Please describe.
I am trying to use a multiline string from the Vault and embed it into a subsequence. The multiline string may have its indent stored in the Vault. Here is one example:
I have read issues #297 and #451. I trying to add indent 4 after the substitution like <path:secret/data/mysecret#credential | indent 4>. But the result becomes:
The indent of the last line is broken. Then I checked the source code of handling indent. It trimmed spaces before adding the selected level of spaces into the lines.
Describe the solution you'd like
I think the indent function should keep the original spaces and add the selected number of spaces into the strings.
Is your feature request related to a problem? Please describe. I am trying to use a multiline string from the Vault and embed it into a subsequence. The multiline string may have its indent stored in the Vault. Here is one example:
And the secret resource would be like:
The result generated is:
I have read issues #297 and #451. I trying to add indent 4 after the substitution like <path:secret/data/mysecret#credential | indent 4>. But the result becomes:
The indent of the last line is broken. Then I checked the source code of handling indent. It trimmed spaces before adding the selected level of spaces into the lines.
Describe the solution you'd like I think the indent function should keep the original spaces and add the selected number of spaces into the strings.