Hi everyone,
I’m using a catalog selection in an email and ran into a problem with Liquid whitespace control.
In the drag-and-drop editor, every Liquid tag on its own line leaves a blank line in the output. The Braze Liquid FAQ recommends whitespace control ({%- and -%}) to avoid this, so I added hyphens to my tags. After doing that, the catalog selection stopped working.
Works:
{% catalog_selection_items my_catalog my_selection %}
{{ items | size }}
Doesn’t work (only difference is the hyphen on the opening delimiter):
{%- catalog_selection_items my_catalog my_selection %}
{{ items | size }}
With the hyphen on the opening {%-, the items array is empty, nothing is rendered . Without it, the selection returns the expected items.
Could the length of my selection name be causing this? Any suggestions would be appreciated.
Thanks in advance!