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
I imagine this is something I'm doing incorrectly. Running some of the examples locally, I don't see the same result as the docs. Any idea what the cause could be?
Your behaviour is correct, the docs are wrong. To get the behaviour you want, you are indeed correct, you need to add a \n. There's a few ways to do this that I can think of off the top of my head:
you could simply add a newline character inside the template block (I think this is what I intended in the docs):
I imagine this is something I'm doing incorrectly. Running some of the examples locally, I don't see the same result as the docs. Any idea what the cause could be?
Here are a couple of examples:
https://docs.gomplate.ca/functions/strings/#examples-7
https://docs.gomplate.ca/functions/strings/#examples-6
I tried on both bash and fish. I'm using
gomplate version 3.7.0
on MacOS.In lieu of the newlines not being added, can I add them myself? Adding
\n
causes those characters rather than a newline to appear.Thanks!
The text was updated successfully, but these errors were encountered: