Open gyotov opened 1 year ago
The theme check throws an error, when trying to escape whitespaces from schema tags in liquid. Example:
schema
{% schema %} "name": "Section 1", "settings": [] {% endschema %}
This causes the section to render whitespaces, regardless if there is anything to render, based on certain logic:
The solition is to escape the whitespaces from the schema tags:
{%- schema -%} "name": "Section 1", "settings": [] {%- endschema -%}
While this works as expected, the theme check throws an error:
The only acceptable solution in this case is to omit the new line at EOF, but this is not a good practise.
The theme check throws an error, when trying to escape whitespaces from
schema
tags in liquid. Example:This causes the section to render whitespaces, regardless if there is anything to render, based on certain logic:
The solition is to escape the whitespaces from the
schema
tags:While this works as expected, the theme check throws an error:
The only acceptable solution in this case is to omit the new line at EOF, but this is not a good practise.