Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit ad813b5

Browse files
cocolabssassampart
authored andcommitted
Fix spaceless tag deprecations (#110)
1 parent ddac599 commit ad813b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Resources/views/json-ld.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if wo_breadcrumbs()|length %}
2-
{%- spaceless -%}
2+
{% apply spaceless %}
33
<script type="application/ld+json">
44
{
55
"@context": "http://schema.org",
@@ -20,5 +20,5 @@
2020
]
2121
}
2222
</script>
23-
{%- endspaceless -%}
23+
{% endapply %}
2424
{% endif %}

Resources/views/microdata.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if wo_breadcrumbs()|length %}
2-
{%- spaceless -%}
2+
{% apply spaceless %}
33
<ol id="{{ listId }}" class="{{ listClass }}" itemscope itemtype="http://schema.org/BreadcrumbList">
44
{% for b in breadcrumbs %}
55
<li{% if itemClass is defined and itemClass|length %} class="{{ itemClass }}"{% endif %} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
@@ -20,5 +20,5 @@
2020
</li>
2121
{% endfor %}
2222
</ol>
23-
{%- endspaceless -%}
23+
{% endapply %}
2424
{% endif %}

0 commit comments

Comments
 (0)