Stripping leading whitespace in multiline templates #3866
-
I have a template like this:
but this seems to treat it as a single string
Is there a way to get it to strip whitespace on each line? I really don't want to have to put an if…end block for each line! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to remove the whitespace yourself, i.e.
See the |
Beta Was this translation helpful? Give feedback.
You need to remove the whitespace yourself, i.e.
See the
text/template
docs on whitespace for more information.