How to maintain whitespaces in for-loops #354
Unanswered
HenrikPoulsen
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The behavior of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I'm working on something where I need to parse yaml files that use liquid. I have done some experimentation with liquidjs but I pretty quickly got into a situation where it seems to clobber leading whitespaces, which ends up making it invalid yaml.
Here's a simplified example:
The expected output here is:
but it becomes
Here's an example using the playground which shows the same.
How can I avoid this behavior without requiring people to change their yml?
Is this a bug or can I configure this somehow?
Beta Was this translation helpful? Give feedback.
All reactions